]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
iconv: Fix -c
authorAndrej Lajovic <natrij@gmail.com>
Fri, 16 Nov 2012 17:48:36 +0000 (18:48 +0100)
committerAndreas Jaeger <aj@suse.de>
Fri, 16 Nov 2012 17:48:36 +0000 (18:48 +0100)
2012-11-16  Andrej Lajovic  <natrij@gmail.com>

[BZ #14672]
* iconv/iconv_prog.c (main): Fix -c handling of '/'.

ChangeLog
NEWS
iconv/iconv_prog.c

index 64378be2ac9c11f0470893a8a4b9421324b39a71..0b8c5110ede74dff525d35e8a8a48e9a6e031b66 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-16  Andrej Lajovic  <natrij@gmail.com>
+
+       [BZ #14672]
+       * iconv/iconv_prog.c (main): Fix -c handling of '/'.
+
 2012-11-16  David S. Miller  <davem@davemloft.net>
 
        * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
diff --git a/NEWS b/NEWS
index 2d0c613f2dfd1801b6ef0e0d69580bfe53be0543..6e8c6c28d677bfab8a9932c48c391994c8d9511f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,9 +18,9 @@ Version 2.17
   14376, 14417, 14459, 14476, 14477, 14501, 14505, 14510, 14516, 14518,
   14519, 14530, 14532, 14538, 14543, 14544, 14545, 14557, 14562, 14568,
   14576, 14579, 14583, 14587, 14595, 14602, 14610, 14621, 14638, 14645,
-  14648, 14652, 14660, 14661, 14669, 14683, 14694, 14716, 14743, 14767,
-  14783, 14784, 14785, 14793, 14796, 14797, 14801, 14805, 14807, 14809,
-  14811, 14815, 14821, 14824, 14828, 14831, 14838.
+  14648, 14652, 14660, 14661, 14669, 14672, 14683, 14694, 14716, 14743,
+  14767, 14783, 14784, 14785, 14793, 14796, 14797, 14801, 14805, 14807,
+  14809, 14811, 14815, 14821, 14824, 14828, 14831, 14838.
 
 * Port to ARM AArch64 contributed by Linaro.
 
index 62c6794e4ffa70fabee6652a3debe34faa6f0b4f..a2ce396339539fceb914094a0ab8c6acc55ffeb9 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert text in given files from the specified from-set to the to-set.
-   Copyright (C) 1998-2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 
@@ -155,7 +155,7 @@ main (int argc, char *argv[])
       if (*errhand == '/')
        {
          --nslash;
-         errhand = strchrnul (errhand, '/');
+         errhand = strchrnul (errhand + 1, '/');
 
          if (*errhand == '/')
            {