diff options
Diffstat (limited to 'src/vsnprintf.c')
| -rw-r--r-- | src/vsnprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vsnprintf.c b/src/vsnprintf.c index 6949455f3..e2f39888e 100644 --- a/src/vsnprintf.c +++ b/src/vsnprintf.c @@ -72,13 +72,13 @@ int fl_vsnprintf(char* buffer, size_t bufsize, const char* format, va_list ap) { else sign = 0; width = 0; - while (isdigit(*format)) width = width * 10 + *format++ - '0'; + while (isdigit(*format & 255)) width = width * 10 + *format++ - '0'; if (*format == '.') { format ++; prec = 0; - while (isdigit(*format)) prec = prec * 10 + *format++ - '0'; + while (isdigit(*format & 255)) prec = prec * 10 + *format++ - '0'; } else prec = -1; if (*format == 'l' && format[1] == 'l') { |
