aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mm.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-02-12 22:13:18 +0000
committerFred Fish <fnf@specifix.com>1996-02-12 22:13:18 +0000
commitc37c7c6ca3fa434247cdc43c212c83ad4be2741f (patch)
treeae034e40f8c6622e83ad753014bf6c36f5d8a6e4 /gdb/remote-mm.c
parent1d0e0732763491c3d06cabd03cf71372111f472b (diff)
downloadfsf-binutils-gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.zip
fsf-binutils-gdb-c37c7c6ca3fa434247cdc43c212c83ad4be2741f.tar.gz
fsf-binutils-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-mm.c')
-rw-r--r--gdb/remote-mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-mm.c b/gdb/remote-mm.c
index 360aa9d..101d964 100644
--- a/gdb/remote-mm.c
+++ b/gdb/remote-mm.c
@@ -260,7 +260,7 @@ mm_open (name, from_tty)
if (p == 0 || *p == '\0')
erroid:
error ("Usage : <command> <serial-device> <baud-rate> [progname]");
- 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';