forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user