diff src/c/driver.c @ 475:9babc5d2ec5a

Fix parsing of last input header
author Adam Chlipala <adamc@hcoop.net>
date Sat, 08 Nov 2008 10:58:59 -0500
parents 0f128cbc2758
children 667c0e54632a
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");