mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 08:24:05 +08:00
Doh!
* gdbtk-variable.c (variable_create): Allocate enough space to hold the NULL, too!
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 4 10:35:28 1999 Keith Seitz <keiths@cygnus.com>
|
||||||
|
|
||||||
|
* gdbtk-variable.c (variable_create): Allocate enough
|
||||||
|
space to hold the NULL, too!
|
||||||
|
|
||||||
Wed Feb 3 13:37:07 1999 Keith Seitz <keiths@cygnus.com>
|
Wed Feb 3 13:37:07 1999 Keith Seitz <keiths@cygnus.com>
|
||||||
|
|
||||||
* gdbtk-variable.c (variable_create): Add parentheses to the name
|
* gdbtk-variable.c (variable_create): Add parentheses to the name
|
||||||
|
@ -502,7 +502,7 @@ variable_create (interp, objc, objv)
|
|||||||
{
|
{
|
||||||
/* Add parentheses to the name so that casts do
|
/* Add parentheses to the name so that casts do
|
||||||
not confuse it. */
|
not confuse it. */
|
||||||
char *newname = (char *) xmalloc (strlen (name) + 2);
|
char *newname = (char *) xmalloc (strlen (name) + 3);
|
||||||
sprintf (newname, "(%s)", name);
|
sprintf (newname, "(%s)", name);
|
||||||
var = create_variable (name, newname, pc);
|
var = create_variable (name, newname, pc);
|
||||||
FREEIF (newname);
|
FREEIF (newname);
|
||||||
|
Reference in New Issue
Block a user