From 34da6fdadb3d9a01559d120a262a044c2c55b22b Mon Sep 17 00:00:00 2001 From: YJ Lee Date: Thu, 14 Jan 2021 16:25:23 +0900 Subject: Avoid syntax injection inside code block Co-authored-by: BenBE --- InfoScreen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'InfoScreen.c') diff --git a/InfoScreen.c b/InfoScreen.c index 76d9838a..5c5bcf39 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -116,13 +116,14 @@ void InfoScreen_run(InfoScreen* this) { } else if (mevent.y == LINES - 1) { ch = IncSet_synthesizeEvent(this->inc, mevent.x); } + } #if NCURSES_MOUSE_VERSION > 1 - } else if (mevent.bstate & BUTTON4_PRESSED) { + else if (mevent.bstate & BUTTON4_PRESSED) { ch = KEY_WHEELUP; } else if (mevent.bstate & BUTTON5_PRESSED) { ch = KEY_WHEELDOWN; - #endif } + #endif } } -- cgit v1.2.3