summaryrefslogtreecommitdiff
path: root/gdb/remote-rdp.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-20 01:37:10 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-20 01:37:10 +0000
commit211496566bf99ace06427acd2fccc3aa85d4d19c (patch)
tree49686c11f98c87c34da0f10b077e0275c0ec1a0c /gdb/remote-rdp.c
parent365f67c1fd2c8d32730c6715e0034372402e7e2e (diff)
downloadgdb-211496566bf99ace06427acd2fccc3aa85d4d19c.tar.gz
malloc() -> xmalloc.
Move malloc() decl to utils.c
Diffstat (limited to 'gdb/remote-rdp.c')
-rw-r--r--gdb/remote-rdp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/remote-rdp.c b/gdb/remote-rdp.c
index e9002de1724..1c9b3c38503 100644
--- a/gdb/remote-rdp.c
+++ b/gdb/remote-rdp.c
@@ -699,13 +699,7 @@ rdp_set_command_line (char *command, char *args)
if (commandline != NULL)
xfree (commandline);
- commandline = malloc (strlen (command) + strlen (args) + 2);
- if (commandline != NULL)
- {
- strcpy (commandline, command);
- strcat (commandline, " ");
- strcat (commandline, args);
- }
+ xasprintf (&commandline, %s %s", command, args);
}
static void