This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Fix typo in remote.c
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 22 Jun 2005 13:42:56 +0200
- Subject: [commit] Fix typo in remote.c
The compiler complains about this and rightly so!
Committed as obvious,
Mark
2005-06-22 Mark Kettenis <kettenis@gnu.org>
* remote.c (extended_remote_restart): Pass buffer in call to
xsnprintf instead of a pointer to the buffer.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.193
diff -u -p -r1.193 remote.c
--- remote.c 17 Jun 2005 03:42:24 -0000 1.193
+++ remote.c 22 Jun 2005 11:39:43 -0000
@@ -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