From: Ozkan Sezer Date: Tue, 20 Jul 2010 18:20:27 +0000 (+0000) Subject: * gdb/gdbserver/server.c (handle_query): strcpy() the returned string from X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6f46ca0a460b20a1c2f321e0d3e73dd9715c603;p=binutils-gdb.git * gdb/gdbserver/server.c (handle_query): strcpy() the returned string from paddress() instead of sprintf(). --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 1400a242463..0d16be9f0c1 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,7 @@ 2010-07-20 Ozkan Sezer + * server.c (handle_query): strcpy() the returned string from paddress() + instead of sprintf(). * utils.c (paddress): Return phex_nz(). 2010-07-07 Joel Brobecker diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 9125f0ef60f..29b6cdcd1a8 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -1539,7 +1539,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p) if (err == 0) { - sprintf (own_buf, "%llx", address); + strcpy (own_buf, paddress(address)); return; } else if (err > 0) @@ -1563,7 +1563,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p) n = (*the_target->get_tib_address) (ptid, &tlb); if (n == 1) { - sprintf (own_buf, "%llx", tlb); + strcpy (own_buf, paddress(tlb)); return; } else if (n == 0)