From 23054adeff8d167d8e1455daa03534c5fd431021 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 13 Jun 2000 18:22:02 +0000 Subject: [PATCH] (main): Fix appending slashes if omit_invalid is true. --- iconv/iconv_prog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c index 56a2014..9c85b7c 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")); -- 2.7.4