aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/host-libusb.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-07-01 20:18:01 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-13 11:46:35 +0200
commit185951817dede3dfe4eb1c4c6d262607bee605ef (patch)
treea5512035068cf08c2f731c44a63cf1da29e1dbf8 /hw/usb/host-libusb.c
parent480324ec8d76582fa1c367cc9a0fdb653d4ea96e (diff)
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 'hw/usb/host-libusb.c')
0 files changed, 0 insertions, 0 deletions