Bug fix: %f did not work, if no width was specified
authorceriel <none@none>
Wed, 28 Jan 1987 16:52:16 +0000 (16:52 +0000)
committerceriel <none@none>
Wed, 28 Jan 1987 16:52:16 +0000 (16:52 +0000)
lang/cem/libcc/stdio/doscan.c

index 2800aa8..7762701 100644 (file)
@@ -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;