diff options
author | Philippe Mathieu-Daudé | 2022-08-19 17:39:28 +0200 |
---|---|---|
committer | Peter Maydell | 2022-09-22 17:38:28 +0200 |
commit | fa87341dabebe79d2e5577432a98b83c9eddf968 (patch) | |
tree | 117c374d99a0c8c670dc70df3d0c61f75df2264c /ui/curses.c | |
parent | hw/intc/xics: Avoid dynamic stack allocation (diff) | |
download | qemu-fa87341dabebe79d2e5577432a98b83c9eddf968.tar.gz qemu-fa87341dabebe79d2e5577432a98b83c9eddf968.tar.xz qemu-fa87341dabebe79d2e5577432a98b83c9eddf968.zip |
hw/i386/multiboot: Avoid dynamic stack allocation
Use autofree heap allocation instead of variable-length array on
the stack. Replace the snprintf() call by g_strdup_printf().
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20220819153931.3147384-9-peter.maydell@linaro.org
Diffstat (limited to 'ui/curses.c')
0 files changed, 0 insertions, 0 deletions