commit: | 5d15d4669596de35826b79d83699e76a100bea3a |
author: | Chip Black |
committer: | Chip Black |
date: | Thu Jan 6 01:27:23 2011 -0600 |
parents: | 4eeb1971141848bfc2c13c275208a906048a3e25 |
diff --git a/cgi/cgi_blerg.c b/cgi/cgi_blerg.c line changes: +2/-2 index 2d48d82..6404fa3 --- a/cgi/cgi_blerg.c +++ b/cgi/cgi_blerg.c
@@ -70,7 +70,7 @@ void respond_taglist(struct tag *results, int i) { yajl_gen_array_close(g); yajl_gen_get_buf(g, &ybuf, &len); - write(ybuf, len, 1, stdout); + fwrite(ybuf, len, 1, stdout); yajl_gen_free(g); }
@@ -249,7 +249,7 @@ int main(int argc, char *argv[]) { printf("Content-type: application/json\r\n"); printf("Content-length: %d\r\n\r\n", len); - write(ybuf, len, 1, stdout); + fwrite(ybuf, len, 1, stdout); yajl_gen_free(g); } else if (strncmp(path, "/create", 8) == 0) {