about summary refs log tree commit diff
path: root/iconv
diff options
context:
space:
mode:
authorAndrej Lajovic <natrij@gmail.com>2012-11-16 18:48:36 +0100
committerAndreas Jaeger <aj@suse.de>2012-11-16 18:48:36 +0100
commitd64d9f8780f4f566ff11f3b7bbb2ddeef5505d8c (patch)
tree720216ac3a092b154533b6ac886bceff13cf1a94 /iconv
parent447885ebf1c1fc8adf4084f5e2708ff84d0da43b (diff)
downloadglibc-d64d9f8780f4f566ff11f3b7bbb2ddeef5505d8c.tar.gz
glibc-d64d9f8780f4f566ff11f3b7bbb2ddeef5505d8c.tar.xz
glibc-d64d9f8780f4f566ff11f3b7bbb2ddeef5505d8c.zip
iconv: Fix -c
2012-11-16  Andrej Lajovic  <natrij@gmail.com>

	[BZ #14672]
	* iconv/iconv_prog.c (main): Fix -c handling of '/'.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/iconv_prog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 62c6794e4f..a2ce396339 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -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 == '/')
 	    {