From: ceriel Date: Wed, 28 Jan 1987 16:52:16 +0000 (+0000) Subject: Bug fix: %f did not work, if no width was specified X-Git-Tag: release-5-5~4904 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d35a16c30fa30a672b014180cf341e6920a02960;p=ack.git Bug fix: %f did not work, if no width was specified --- diff --git a/lang/cem/libcc/stdio/doscan.c b/lang/cem/libcc/stdio/doscan.c index 2800aa860..776270135 100644 --- a/lang/cem/libcc/stdio/doscan.c +++ b/lang/cem/libcc/stdio/doscan.c @@ -218,6 +218,7 @@ union ptr_union *argp; /* our argument list */ case 'f': { register char *c = buffer; + if (!widflag) width = 127; if (width >= 128) width = 127; if (width && (ic == '+' || ic == '-')) { *c++ = ic;