diff mbox series

[PULL,28/61] ui/curses: Make control_characters[] array const

Message ID 1584394048-44994-29-git-send-email-pbonzini@redhat.com
State New
Headers show
Series [PULL,01/61] scsi/qemu-pr-helper: Fix out-of-bounds access to trnptid_list[] | expand

Commit Message

Paolo Bonzini March 16, 2020, 9:26 p.m. UTC
From: Philippe Mathieu-Daudé <philmd@redhat.com>

As we only use this array as input, make it const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 ui/curses.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ui/curses.c b/ui/curses.c
index 3a1b714..3bafc10 100644
--- a/ui/curses.c
+++ b/ui/curses.c
@@ -529,7 +529,7 @@  static void font_setup(void)
      * Control characters are normally non-printable, but VGA does have
      * well-known glyphs for them.
      */
-    static uint16_t control_characters[0x20] = {
+    static const uint16_t control_characters[0x20] = {
       0x0020,
       0x263a,
       0x263b,