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 () ...@@ -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++)
......