summaryrefslogtreecommitdiff
path: root/usr.bin/mg/main.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-02-25 14:40:17 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-02-25 14:40:17 +0000
commit49e71ead2849c01f1a97690e318324e9243dcd3b (patch)
tree6644339a7a57b1d7f00091bbd39f9f27b0f7adc1 /usr.bin/mg/main.c
parent8ee2a01b688cb3911668295c00b731329070a8a1 (diff)
Fix a coredump occurring when the terminal is resized while mg is
suspended. Problem reported and fixed tested by reyk@; tweak by kjell@; ok kjell@
Diffstat (limited to 'usr.bin/mg/main.c')
-rw-r--r--usr.bin/mg/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/main.c b/usr.bin/mg/main.c
index 00325530e2e..d306ad0844e 100644
--- a/usr.bin/mg/main.c
+++ b/usr.bin/mg/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.48 2005/12/13 06:01:27 kjell Exp $ */
+/* $OpenBSD: main.c,v 1.49 2006/02/25 14:40:16 otto Exp $ */
/* This file is in the public domain. */
@@ -140,7 +140,7 @@ notnum:
eerase();
#endif /* !NO_DPROMPT */
if (winch_flag) {
- redraw(0, 0);
+ do_redraw(0, 0, TRUE);
winch_flag = 0;
}
update();