diff options
author | Fred Fish <fnf@specifix.com> | 1996-02-12 22:13:18 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-02-12 22:13:18 +0000 |
commit | c37c7c6ca3fa434247cdc43c212c83ad4be2741f (patch) | |
tree | ae034e40f8c6622e83ad753014bf6c36f5d8a6e4 /gdb/remote-adapt.c | |
parent | 1d0e0732763491c3d06cabd03cf71372111f472b (diff) | |
download | gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.zip gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.gz gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.bz2 |
* somsolib.c (som_solib_add): Use xmalloc rather than bare
unchecked call to malloc.
* remote-mips.c (pmon_load_fast): ditto.
* remote-mm.c (mm_open): ditto.
* hpread.c (hpread_lookup_type): ditto.
* remote-adapt.c (adapt_open): ditto.
Diffstat (limited to 'gdb/remote-adapt.c')
-rw-r--r-- | gdb/remote-adapt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-adapt.c b/gdb/remote-adapt.c index a3110ef..8fcb1f7 100644 --- a/gdb/remote-adapt.c +++ b/gdb/remote-adapt.c @@ -484,7 +484,7 @@ erroid: error ("\ Please include the name of the device for the serial port,\n\ the baud rate, and the name of the program to run on the remote system."); - dev_name = (char*)malloc(p - name + 1); + dev_name = (char*)xmalloc(p - name + 1); strncpy (dev_name, name, p - name); dev_name[p - name] = '\0'; |