summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 7d1538a..7b68f48 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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;