X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/40e1d9b6177558bf4069c09ca6d8e3a682baa988..6d7e3596ebb387265d8cfdc5b312e0ea76da8c8a:/html.c 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, ...) void html_raw(const char *data, size_t size) { - write(htmlfd, data, size); + if (write(htmlfd, data, size) != size) + fprintf(stderr, "[html.c] html output truncated.\n"); } void html(const char *txt) { - write(htmlfd, txt, strlen(txt)); + html_raw(txt, strlen(txt)); } void htmlf(const char *format, ...)