From: Glenn Burkhardt Date: Tue, 30 Sep 2003 16:22:54 +0000 (+0000) Subject: corrected termination condition for fill character introduced in last version X-Git-Tag: RELEASE_1_2~68 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=b3f36786e62ff7b708849e05d0cac2f55f37e6a5;p=mmh corrected termination condition for fill character introduced in last version --- diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 6781535..4365e35 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -315,7 +315,7 @@ fmt_scan (struct format *format, char *scanl, int width, int *dat) cp += n; } else n = 0; c = abs(fmt->f_width) - n; - for (; c && cp < ep; c--) *cp++ = fmt->f_fill; + for (; (c > 0) && (cp < ep); c--) *cp++ = fmt->f_fill; break; case FT_CHAR: