* 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:
Fred Fish
1996-02-12 22:13:18 +00:00
parent 1d0e073276
commit c37c7c6ca3
6 changed files with 15 additions and 6 deletions

View File

@@ -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';