projects
/
infodrom
/
cgilib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ea535
)
Terminate a freshly allocated string as well.
author
Joey Schulze
<joey@infodrom.org>
Wed, 1 Jul 2009 16:05:14 +0000
(16:05 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 1 Jul 2009 16:05:14 +0000
(16:05 +0000)
cgi.c
patch
|
blob
|
history
diff --git
a/cgi.c
b/cgi.c
index
6bfb492
..
e390b37
100644
(file)
--- a/
cgi.c
+++ b/
cgi.c
@@
-64,6
+64,7
@@
int cgiSetHeader (const char *name, const char *value)
if ((cgiHeaderString = (char *)malloc (len)) == NULL)
return 0;
pivot = cgiHeaderString;
+ *pivot = '\0';
}
memset(pivot+1, 0, (cp-name + vp-value + 4));