(main): Fix appending slashes if omit_invalid is true.
authorUlrich Drepper <drepper@redhat.com>
Tue, 13 Jun 2000 18:22:02 +0000 (18:22 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 13 Jun 2000 18:22:02 +0000 (18:22 +0000)
iconv/iconv_prog.c

index 56a2014..9c85b7c 100644 (file)
@@ -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"));