* features/loadapi (test_expand): Allocate memory for the nul byte.

This commit is contained in:
Paul Smith 2013-11-24 04:08:30 -05:00
parent 865d90bb1e
commit f5f5adb62c

View file

@ -36,7 +36,7 @@ test_expand (const char *val)
static char *
test_noexpand (const char *val)
{
char *str = gmk_alloc (strlen (val));
char *str = gmk_alloc (strlen (val) + 1);
strcpy (str, val);
return str;
}