diff options
-rw-r--r-- | src/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -140,6 +140,10 @@ static int fastd_vsnprintf(char *buffer, size_t size, const char *format, va_lis format++; switch(*format) { + case '%': + buffer += snprintf_safe(buffer, buffer_end-buffer, "%%"); + break; + case 'i': buffer += snprintf_safe(buffer, buffer_end-buffer, "%i", va_arg(ap, int)); break; |