changeset 475:9babc5d2ec5a

Fix parsing of last input header
author Adam Chlipala <adamc@hcoop.net>
date Sat, 08 Nov 2008 10:58:59 -0500
parents 70ee90105fce
children c9566d49ecfe
files src/c/driver.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/driver.c	Sat Nov 08 10:46:14 2008 -0500
+++ b/src/c/driver.c	Sat Nov 08 10:58:59 2008 -0500
@@ -137,7 +137,7 @@
         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");