]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Ensure string is properly terminated.
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 6 Aug 2007 13:19:15 +0000 (13:19 +0000)
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 6 Aug 2007 13:19:15 +0000 (13:19 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3113 c046a42c-6fe2-441c-8c8c-71466251a162

gdbstub.c

index 4aafcaa10445e55122bb3deb65cf889af139902b..48c0c56c8455219751630d38becacbc0b06354ec 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1032,6 +1032,7 @@ void gdb_do_syscall(gdb_syscall_complete_cb cb, char *fmt, ...)
             *(p++) = *(fmt++);
         }
     }
+    *p = 0;
     va_end(va);
     put_packet(s, buf);
 #ifdef CONFIG_USER_ONLY