diff options
| author | Gerd Hoffmann | 2020-07-01 20:18:01 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2020-07-13 11:46:35 +0200 |
| commit | 185951817dede3dfe4eb1c4c6d262607bee605ef (patch) | |
| tree | a5512035068cf08c2f731c44a63cf1da29e1dbf8 /python | |
| parent | docs/qdev-device-use: Clean up the sentences related to -usbdevice (diff) | |
| download | qemu-185951817dede3dfe4eb1c4c6d262607bee605ef.tar.gz qemu-185951817dede3dfe4eb1c4c6d262607bee605ef.tar.xz qemu-185951817dede3dfe4eb1c4c6d262607bee605ef.zip | |
ui: fix vc_chr_write call in text_console_do_init
In case the string doesn't fit into the buffer snprintf returns the size
it would need, so len can be larger than the buffer. Fix this by simply
using g_strdup_printf() instead of a static buffer.
Reported-by: Wenxiang Qian <leonwxqian@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20200701181801.27935-1-kraxel@redhat.com
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
