[commit] Fix typo in remote.c
Mark Kettenis
kettenis@gnu.org
Wed Jun 22 11:43:00 GMT 2005
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
More information about the Gdb-patches
mailing list