diff options
author | Paul Smith <psmith@gnu.org> | 2013-11-24 04:08:30 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-11-24 04:08:30 -0500 |
commit | f5f5adb62cd8ea3d96e79b86f9e6fe8ada397b45 (patch) | |
tree | fde786ee447f56715e3f54d2916f023d12cf1846 /tests/scripts/features | |
parent | 865d90bb1e4500ad2147d85877fd496552fdbbf5 (diff) | |
download | gunmake-f5f5adb62cd8ea3d96e79b86f9e6fe8ada397b45.tar.gz |
* features/loadapi (test_expand): Allocate memory for the nul byte.
Diffstat (limited to 'tests/scripts/features')
-rw-r--r-- | tests/scripts/features/loadapi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scripts/features/loadapi b/tests/scripts/features/loadapi index bf66bae..8c824c0 100644 --- a/tests/scripts/features/loadapi +++ b/tests/scripts/features/loadapi @@ -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; } |