Advance the format string when seeing '*' for field width and precision.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 25 Aug 2008 10:22:07 +0000 (10:22 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 25 Aug 2008 10:22:07 +0000 (10:22 +0000)
[r21436]

format_check.c

index f572d14..d666d1a 100644 (file)
@@ -247,6 +247,7 @@ break_fmt_flags:
 
                        /* minimum field width */
                        if (fmt == '*') {
+                               fmt = vchar.next(&vchar);
                                if (arg == NULL) {
                                        warningf(pos, "missing argument for '*' field width in conversion specification");
                                        return;
@@ -267,6 +268,7 @@ break_fmt_flags:
                if (fmt == '.') {
                        fmt = vchar.next(&vchar);
                        if (fmt == '*') {
+                               fmt = vchar.next(&vchar);
                                if (arg == NULL) {
                                        warningf(pos, "missing argument for '*' precision in conversion specification");
                                        return;