summaryrefslogtreecommitdiff
path: root/client/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-29 10:35:23 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-29 10:35:23 +0200
commitef8b97942d8d5cec956b75b6254e18034914e80d (patch)
tree67f061004e3d895cd2e20184c935007d967d4cfc /client/setup.c
parent4d446fb2c1d14142304971095ee60668ba9c6bc5 (diff)
fix buffer overrun in logs
Diffstat (limited to 'client/setup.c')
-rw-r--r--client/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/setup.c b/client/setup.c
index 43ed135..56c131c 100644
--- a/client/setup.c
+++ b/client/setup.c
@@ -45,7 +45,7 @@ void w2_client_setup(int argc, char **argv) {
g_w2_ui_height = getmaxy(g_w2_ui_win);
g_w2_ui_pad_tabbar = newpad(1, g_w2_ui_width);
- g_w2_ui_pad_body = newpad(g_w2_ui_height - 5, g_w2_ui_width);
+ g_w2_ui_pad_body = newpad(0x1000, g_w2_ui_width);
g_w2_ui_pad_statusbar = newpad(2, g_w2_ui_width);
g_w2_ui_pad_seperator = newpad(1, g_w2_ui_width + 1);
scrollok(g_w2_ui_pad_body, true);