From 8319227b557c98db99776f2a3ea1fe3022643497 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 7 Dec 2018 22:18:50 +0200 Subject: [PATCH] Clear the getlin buffer Recent change to this bit of code didn't clear the buffer, which causes garbage in the string if compiled with EDIT_GETLIN --- win/tty/wintty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/tty/wintty.c b/win/tty/wintty.c index 47bac195b..b5c4451df 100644 --- a/win/tty/wintty.c +++ b/win/tty/wintty.c @@ -2046,7 +2046,7 @@ struct WinDesc *cw; tty_nhbell(); break; } else { - char searchbuf[BUFSZ + 2], tmpbuf[BUFSZ]; + char searchbuf[BUFSZ + 2], tmpbuf[BUFSZ] = DUMMY; boolean on_curr_page = FALSE; int lineno = 0;