aboutsummaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index b5c6903..d60a41f 100644
--- a/html.c
+++ b/html.c
@@ -63,12 +63,13 @@ char *fmt(const char *format, ...)
63 63
64void html_raw(const char *data, size_t size) 64void html_raw(const char *data, size_t size)
65{ 65{
66 write(htmlfd, data, size); 66 if (write(htmlfd, data, size) != size)
67 fprintf(stderr, "[html.c] html output truncated.\n");
67} 68}
68 69
69void html(const char *txt) 70void html(const char *txt)
70{ 71{
71 write(htmlfd, txt, strlen(txt)); 72 html_raw(txt, strlen(txt));
72} 73}
73 74
74void htmlf(const char *format, ...) 75void htmlf(const char *format, ...)