aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/html.c b/html.c
index bf1490f..5780dc1 100644
--- a/html.c
+++ b/html.c
@@ -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)