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 64378be..0b8c511 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 2d0c613..6e8c6c2 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 62c6794..a2ce396 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 == '/')
            {