mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
Ensure string is properly terminated.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3113 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
1569fc29ef
commit
8a93e02a93
1 changed files with 1 additions and 0 deletions
|
@ -1032,6 +1032,7 @@ void gdb_do_syscall(gdb_syscall_complete_cb cb, char *fmt, ...)
|
||||||
*(p++) = *(fmt++);
|
*(p++) = *(fmt++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*p = 0;
|
||||||
va_end(va);
|
va_end(va);
|
||||||
put_packet(s, buf);
|
put_packet(s, buf);
|
||||||
#ifdef CONFIG_USER_ONLY
|
#ifdef CONFIG_USER_ONLY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue