diff options
author | Adam Chlipala <adam@chlipala.net> | 2015-01-22 09:55:05 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2015-01-22 09:55:05 -0500 |
commit | d64871d978719a36f3f52d6fdaef80fc757fa752 (patch) | |
tree | e154a291eb468a999bdf7fc9c14aa30e91f79a11 /src/c | |
parent | 2207f580efc424d40c81d4dd98fb414e29eaa7f9 (diff) |
Fix a potential memory bug in fastcgi.c
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/fastcgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/fastcgi.c b/src/c/fastcgi.c index f3e66e3a..cda3e1f6 100644 --- a/src/c/fastcgi.c +++ b/src/c/fastcgi.c @@ -333,7 +333,7 @@ static void *worker(void *data) { size_t path_size = 0; char *path_buf = malloc(0); - hs.uppercased = malloc(0); + hs.uppercased = malloc(6); hs.uppercased_len = 0; hs.nvps = malloc(sizeof(nvp)); hs.n_nvps = 1; |