about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c index cefcf5e..ced781a 100644 --- a/html.c +++ b/html.c
@@ -59,7 +59,7 @@ char *fmt(const char *format, ...)
59 va_start(args, format); 59 va_start(args, format);
60 len = vsnprintf(buf[bufidx], sizeof(buf[bufidx]), format, args); 60 len = vsnprintf(buf[bufidx], sizeof(buf[bufidx]), format, args);
61 va_end(args); 61 va_end(args);
62 if (len > sizeof(buf[bufidx])) { 62 if (len >= sizeof(buf[bufidx])) {
63 fprintf(stderr, "[html.c] string truncated: %s\n", format); 63 fprintf(stderr, "[html.c] string truncated: %s\n", format);
64 exit(1); 64 exit(1);
65 } 65 }