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 | 05fedcc9a8124c39b92c8065d96037848149ffed (patch) | |
tree | fde786ee447f56715e3f54d2916f023d12cf1846 /tests | |
parent | 01937843530801fae4bda668a89d9a30501919da (diff) | |
download | make-05fedcc9a8124c39b92c8065d96037848149ffed.tar.gz |
* features/loadapi (test_expand): Allocate memory for the nul byte.
Diffstat (limited to 'tests')
-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 bf66bae8..8c824c04 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; } |