diff options
Diffstat (limited to 'src/pj_param.c')
| -rw-r--r-- | src/pj_param.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_param.c b/src/pj_param.c index 6cee4d1f..7ed0e377 100644 --- a/src/pj_param.c +++ b/src/pj_param.c @@ -42,7 +42,7 @@ paralist *pj_mkparam_ws (char *str) { } /* Use calloc to automagically 0-terminate the copy */ - newitem = (paralist *) pj_calloc (1, sizeof(paralist) + len); + newitem = (paralist *) pj_calloc (1, sizeof(paralist) + len + 1); if (0==newitem) return 0; memmove(newitem->param, str, len); |
