diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index bc9e99a..2e67f67 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -1756,8 +1756,11 @@ static char *awk_printf(node *n) s = f; while (*f && (*f != '%' || *(++f) == '%')) f++; - while (*f && !isalpha(*f)) + while (*f && !isalpha(*f)) { + if (*f == '*') + syntax_error("%*x formats are not supported"); f++; + } incr = (f - s) + MAXVARFMT; qrealloc(&b, incr + i, &bsize); |