diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-04-02 18:44:21 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-04-02 18:44:21 +0000 |
commit | 8306c2c9f0f07fe2bf89128e114eac222236a40d (patch) | |
tree | b105f2d74d8ad3343e6778aebc3f54b72548ee25 /app/xterm/Tekproc.c | |
parent | d2db9cdd11435f1eb87711506d4fef12ec1800cd (diff) |
Update to xterm 367. Tested by abieber@, dv@ and Trondd. Thanks.
Diffstat (limited to 'app/xterm/Tekproc.c')
-rw-r--r-- | app/xterm/Tekproc.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/app/xterm/Tekproc.c b/app/xterm/Tekproc.c index 59dfbdd5a..fb1237fcc 100644 --- a/app/xterm/Tekproc.c +++ b/app/xterm/Tekproc.c @@ -1,4 +1,4 @@ -/* $XTermId: Tekproc.c,v 1.241 2021/02/02 00:19:32 tom Exp $ */ +/* $XTermId: Tekproc.c,v 1.243 2021/03/21 22:08:46 tom Exp $ */ /* * Copyright 2001-2020,2021 by Thomas E. Dickey @@ -81,7 +81,6 @@ #include <X11/Xatom.h> #include <X11/Xutil.h> -#include <X11/cursorfont.h> #include <X11/Xmu/CharSet.h> #if OPT_TOOLBAR @@ -1517,11 +1516,15 @@ TekInitialize(Widget wrequest, min_height = (unsigned) (TEKMINHEIGHT + border); TRACE(("parsing T_geometry %s\n", NonNull(xw->misc.T_geometry))); - pr = XParseGeometry(xw->misc.T_geometry, - &winX, - &winY, - &width, - &height); + if (strlen(xw->misc.T_geometry) <= MAX_U_STRING) { + pr = XParseGeometry(xw->misc.T_geometry, + &winX, + &winY, + &width, + &height); + } else { + pr = 0; + } /* window-manager hints will do this anyway... */ if (height < min_height) { |