From 5b3715bfdafcf35c352aa6d273cadd4eb543c449 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sat, 25 Oct 2008 11:18:12 +0000 Subject: Use snprintf to please OpenBSD linker git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5529 c046a42c-6fe2-441c-8c8c-71466251a162 --- gdbstub.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'gdbstub.c') diff --git a/gdbstub.c b/gdbstub.c index b1e35002d4..1a85eda892 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1050,12 +1050,12 @@ const char *get_feature_xml(CPUState *env, const char *p, const char **newp) if (!target_xml[0]) { GDBRegisterState *r; - sprintf(target_xml, - "" - "" - "" - "", - GDB_CORE_XML); + snprintf(target_xml, sizeof(target_xml), + "" + "" + "" + "", + GDB_CORE_XML); for (r = env->gdb_regs; r; r = r->next) { strcat(target_xml, " total_len) { - sprintf(buf, "E00"); + snprintf(buf, sizeof(buf), "E00"); put_packet(s, buf); break; } -- cgit v1.2.3