From: Mark Kettenis Date: Wed, 22 Jun 2005 11:42:54 +0000 (+0000) Subject: * remote.c (extended_remote_restart): Pass buffer in call to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8d511af85b3a1bfb36ca3ea03f6745fdd635b55;p=binutils-gdb.git * remote.c (extended_remote_restart): Pass buffer in call to xsnprintf instead of a pointer to the buffer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b495f90e38b..236e17e470c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-06-22 Mark Kettenis + + * remote.c (extended_remote_restart): Pass buffer in call to + xsnprintf instead of a pointer to the buffer. + 2005-06-21 Andrew Cagney * MAINTAINERS: List GDB's Steering Committee as responsible for diff --git a/gdb/remote.c b/gdb/remote.c index 1c5b1b129f4..5b6125d7c03 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