summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-11-08 10:58:59 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-11-08 10:58:59 -0500
commitdbf4d428936189bba18ffb1d622029c79da39414 (patch)
tree9b4a86d9e9e171bbf53c8ffe3c265dc08d89af51
parent44db3e6164b414f4724c9971fe550036ebb706c3 (diff)
Fix parsing of last input header
-rw-r--r--src/c/driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/driver.c b/src/c/driver.c
index be5d7b6c..3c750d67 100644
--- a/src/c/driver.c
+++ b/src/c/driver.c
@@ -137,7 +137,7 @@ static void *worker(void *data) {
failure_kind fk;
char *cmd, *path, *headers, path_copy[uw_bufsize+1], *inputs;
- *s = 0;
+ s[2] = 0;
if (!(s = strstr(buf, "\r\n"))) {
fprintf(stderr, "No newline in buf\n");