summaryrefslogtreecommitdiff
path: root/src/c
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
commitd6466419c1318a404d1375b7e36dfa926d22a5bd (patch)
tree9b4a86d9e9e171bbf53c8ffe3c265dc08d89af51 /src/c
parent5342e65ba76eee470973aecef6e53b9145535c55 (diff)
Fix parsing of last input header
Diffstat (limited to 'src/c')
-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");