diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-08-06 13:19:15 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-08-06 13:19:15 +0000 |
commit | 8a93e02a93eb8aae626dc169780226ab115edbf1 (patch) | |
tree | 0204b285c83b177d26029fe7c53f37ddf502aa88 | |
parent | 1569fc29ef60fa1972115860b420fb40d238fac5 (diff) |
Ensure string is properly terminated.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3113 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | gdbstub.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |