1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From fb28c83eb579af23cdf29f9fb937060907418745 Mon Sep 17 00:00:00 2001
From: Kei Hibino <ex8k.hibino@gmail.com>
Date: Thu, 13 Jul 2023 18:55:03 +0900
Subject: [PATCH] fix overflow of w_ntrows in WINDOW struct
---
def.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/def.h b/def.h
index 4e153f4..a2a449a 100644
--- a/def.h
+++ b/def.h
@@ -282,8 +282,8 @@ typedef struct WINDOW {
struct LINE *w_dotp; /* Line containing "." */
short w_lines; /* Top line displayed line number */
short w_doto; /* Byte offset for "." */
- char w_toprow; /* Origin 0 top row of window */
- char w_ntrows; /* # of rows of text in window */
+ short w_toprow; /* Origin 0 top row of window */
+ short w_ntrows; /* # of rows of text in window */
char w_force; /* If NZ, forcing row. */
char w_flag; /* Flags. */
char w_dotlines; /* line containing "." on tty lines */
--
2.39.5
|