(main): Fix appending slashes if omit_invalid is true.

This commit is contained in:
Ulrich Drepper 2000-06-13 18:22:02 +00:00
parent f7b94528be
commit 23054adeff

View 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"));