diff options
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c index 7f81965..cefcf5e 100644 --- a/html.c +++ b/html.c | |||
@@ -80,7 +80,7 @@ char *fmtalloc(const char *format, ...) | |||
80 | 80 | ||
81 | void html_raw(const char *data, size_t size) | 81 | void html_raw(const char *data, size_t size) |
82 | { | 82 | { |
83 | if (write(STDOUT_FILENO, data, size) != size) | 83 | if (fwrite(data, 1, size, stdout) != size) |
84 | die_errno("write error on html output"); | 84 | die_errno("write error on html output"); |
85 | } | 85 | } |
86 | 86 | ||