Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -20,18 +20,16 @@ char *fmt(const char *format, ...) void html(const char *txt) { - write(htmlfd, txt, strlen(txt)); + fputs(txt, stdout); } void htmlf(const char *format, ...) { - static char buf[65536]; va_list args; va_start(args, format); - vsnprintf(buf, sizeof(buf), format, args); + vprintf(format, args); va_end(args); - html(buf); } void html_txt(char *txt) |