diff options
-rw-r--r-- | common/printf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/printf.c b/common/printf.c index e673c17baa..f3b912b5c1 100644 --- a/common/printf.c +++ b/common/printf.c @@ -87,6 +87,10 @@ int vfnprintf(int (*addchar)(void *context, int c), void *context, if (c == '%' || c == '\0') { if (addchar(context, '%')) return EC_ERROR_OVERFLOW; + + if (c == '\0') + break; + continue; } |