mirror of
https://github.com/mirror/make.git
synced 2026-08-08 17:10:58 +00:00
* features/loadapi (test_expand): Allocate memory for the nul byte.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user