about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--iconv/iconv_prog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 56a2014268..9c85b7ce69 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -166,7 +166,7 @@ main (int argc, char *argv[])
 
       newp = (char *) alloca (errhand - to_code + nslash + 6 + 1);
       cp = mempcpy (newp, to_code, errhand - to_code);
-      while (nslash > 0)
+      while (nslash-- > 0)
 	*cp++ = '/';
       memcpy (cp, "NEEDED", sizeof ("NEEDED"));