Commit eee03180 eee03180d207b47daf75fe3b46a0a25d8df1cc4a by Sergey Poznyakoff

Bugfix in wordsplit test program

* libmailutils/tests/wsp.c (make_env_kv): Fix array size.
1 parent 183ada2b
......@@ -146,7 +146,7 @@ make_env_kv ()
for (i = 0; environ[i]; i++)
;
size = (i - 1) * 2 + 1;
size = i * 2 + 1;
newenv = mu_calloc (size, sizeof (newenv[0]));
for (i = j = 0; environ[i]; i++)
......