]> git.proxmox.com Git - spiceterm.git/blobdiff - spiceterm.h
fix bound checking on cursor move
[spiceterm.git] / spiceterm.h
index 7993c6aa01318fd4a83fe065b7e3f9373115ea8c..0e238ca8d924d457fb605ff295b6bb827628513d 100644 (file)
@@ -112,19 +112,19 @@ typedef struct spiceTerm {
     // cursor
     TextAttributes cur_attrib;
     TextAttributes cur_attrib_saved;
-    int tty_state; // 0 - normal, 1 - ESC, 2 - CSI
+    unsigned int tty_state; // 0 - normal, 1 - ESC, 2 - CSI
     int cx; // cursor x position
     int cy; // cursor y position
     int cx_saved; // saved cursor x position
     int cy_saved; // saved cursor y position
-    int esc_buf[MAX_ESC_PARAMS];
-    int esc_count;
-    int esc_ques;
-    int esc_has_par;
+    unsigned int esc_buf[MAX_ESC_PARAMS];
+    unsigned int esc_count;
+    unsigned int esc_ques;
+    unsigned int esc_has_par;
     char osc_textbuf[4096];
     char osc_cmd;
-    int region_top;
-    int region_bottom;
+    unsigned int region_top;
+    unsigned int region_bottom;
 
     unsigned int charset:1; // G0 or G1
     unsigned int charset_saved:1; // G0 or G1