mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-27 06:27:51 +00:00
* features/loadapi (test_expand): Allocate memory for the nul byte.
This commit is contained in:
parent
865d90bb1e
commit
f5f5adb62c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue