Mercurial > hg
changeset 1995:7f7c6b87f1b1
Fix segfault with SIGWINCH
This patch should fix issue #73: When the program is built with
"--enable-sigwinch" a segmentation fault may occur if the size of
a window is changed before a password is entered.
https://bitbucket.org/McKael/mcabber-crew/issue/73/
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 16 Apr 2011 09:25:21 +0200 |
parents | 024bdd1c6418 |
children | 7837d5a3f509 |
files | mcabber/mcabber/main.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/main.c Wed Mar 30 22:02:48 2011 +0200 +++ b/mcabber/mcabber/main.c Sat Apr 16 09:25:21 2011 +0200 @@ -120,7 +120,8 @@ mcabber_terminate("Killed by SIGINT"); #ifdef USE_SIGWINCH } else if (signum == SIGWINCH) { - ungetch(KEY_RESIZE); + if (scr_curses_status()) + ungetch(KEY_RESIZE); #endif } else { scr_LogPrint(LPRINT_LOGNORM, "Caught signal: %d", signum);