diff options
Diffstat (limited to 'gdbstub.c')
-rw-r--r-- | gdbstub.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1333,11 +1333,11 @@ static const char *get_feature_xml(const char *p, const char **newp) GDB_CORE_XML); for (r = first_cpu->gdb_regs; r; r = r->next) { - strcat(target_xml, "<xi:include href=\""); - strcat(target_xml, r->xml); - strcat(target_xml, "\"/>"); + pstrcat(target_xml, sizeof(target_xml), "<xi:include href=\""); + pstrcat(target_xml, sizeof(target_xml), r->xml); + pstrcat(target_xml, sizeof(target_xml), "\"/>"); } - strcat(target_xml, "</target>"); + pstrcat(target_xml, sizeof(target_xml), "</target>"); } return target_xml; } @@ -1838,7 +1838,7 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf) if (strncmp(p, "Supported", 9) == 0) { snprintf(buf, sizeof(buf), "PacketSize=%x", MAX_PACKET_LENGTH); #ifdef GDB_CORE_XML - strcat(buf, ";qXfer:features:read+"); + pstrcat(buf, sizeof(buf), ";qXfer:features:read+"); #endif put_packet(s, buf); break; |