aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-06-22 11:42:54 +0000
committerMark Kettenis <kettenis@gnu.org>2005-06-22 11:42:54 +0000
commitc8d511af85b3a1bfb36ca3ea03f6745fdd635b55 (patch)
treec4423c2990b4652a7a085a0f58e63887fc634fe2 /gdb/remote.c
parentd620b259fbefdd733a3d6d4708005c4377f0bf59 (diff)
downloadgdb-c8d511af85b3a1bfb36ca3ea03f6745fdd635b55.zip
gdb-c8d511af85b3a1bfb36ca3ea03f6745fdd635b55.tar.gz
gdb-c8d511af85b3a1bfb36ca3ea03f6745fdd635b55.tar.bz2
* remote.c (extended_remote_restart): Pass buffer in call to
xsnprintf instead of a pointer to the buffer.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 1c5b1b1..5b6125d 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1923,7 +1923,7 @@ extended_remote_restart (void)
/* Send the restart command; for reasons I don't understand the
remote side really expects a number after the "R". */
- xsnprintf (&buf, rs->remote_packet_size, "R%x", 0);
+ xsnprintf (buf, rs->remote_packet_size, "R%x", 0);
putpkt (buf);
/* Now query for status so this looks just like we restarted