Bugfix in wordsplit test program
* libmailutils/tests/wsp.c (make_env_kv): Fix array size.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -146,7 +146,7 @@ make_env_kv () | ... | @@ -146,7 +146,7 @@ make_env_kv () |
146 | for (i = 0; environ[i]; i++) | 146 | for (i = 0; environ[i]; i++) |
147 | ; | 147 | ; |
148 | 148 | ||
149 | size = (i - 1) * 2 + 1; | 149 | size = i * 2 + 1; |
150 | newenv = mu_calloc (size, sizeof (newenv[0])); | 150 | newenv = mu_calloc (size, sizeof (newenv[0])); |
151 | 151 | ||
152 | for (i = j = 0; environ[i]; i++) | 152 | for (i = j = 0; environ[i]; i++) | ... | ... |
-
Please register or sign in to post a comment