qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs tty.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs tty.c
Date: Wed, 16 Sep 2015 12:35:01 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        15/09/16 12:35:01

Modified files:
        .              : tty.c 

Log message:
        protect tty_resize against spurious window sizes

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/tty.c?cvsroot=qemacs&r1=1.67&r2=1.68

Patches:
Index: tty.c
===================================================================
RCS file: /sources/qemacs/qemacs/tty.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -b -r1.67 -r1.68
--- tty.c       17 Aug 2015 18:13:50 -0000      1.67
+++ tty.c       16 Sep 2015 12:35:01 -0000      1.68
@@ -298,6 +298,8 @@
     if (ioctl(fileno(s->STDIN), TIOCGWINSZ, &ws) == 0) {
         s->width = ws.ws_col;
         s->height = ws.ws_row;
+        if (s->width < 10)
+            s->width = 10;
         if (s->width > MAX_SCREEN_WIDTH)
             s->width = MAX_SCREEN_WIDTH;
         if (s->height < 3)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]