aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-adapt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/remote-adapt.c')
-rw-r--r--gdb/remote-adapt.c2
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';