Unidiff1 files changed, 4 insertions, 2 deletions
|
diff --git a/html.c b/html.c index 5780dc1..bf1490f 100644 --- a/ html.c+++ b/ html.c |
|
@@ -22,3 +22,3 @@ void html(const char *txt) |
22 | { |
22 | { |
23 | fputs(txt, stdout); |
23 | write(htmlfd, txt, strlen(txt)); |
24 | } |
24 | } |
@@ -27,2 +27,3 @@ void htmlf(const char *format, ...) |
27 | { |
27 | { |
| |
28 | static char buf[65536]; |
28 | va_list args; |
29 | va_list args; |
@@ -30,4 +31,5 @@ void htmlf(const char *format, ...) |
30 | va_start(args, format); |
31 | va_start(args, format); |
31 | vprintf(format, args); |
32 | vsnprintf(buf, sizeof(buf), format, args); |
32 | va_end(args); |
33 | va_end(args); |
| |
34 | html(buf); |
33 | } |
35 | } |
|