diff options
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |