From 2c88d8d9053cbf1af72996e8024ae3f5f0007d49 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Sun, 22 Dec 2024 07:55:46 +0000 Subject: [PATCH] FvwmPager: increase command stack size As noticed by ileGITimo -- some commands could be truncated. Increase the stack size not just for the IconSwitchPage command, but also others. Fixes #1146 --- modules/FvwmPager/x_pager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/FvwmPager/x_pager.c b/modules/FvwmPager/x_pager.c index bb2f26800..7dc6819d0 100644 --- a/modules/FvwmPager/x_pager.c +++ b/modules/FvwmPager/x_pager.c @@ -85,7 +85,7 @@ static void do_scroll(int sx, int sy, bool do_send_message, static int psx = 0; static int psy = 0; static int messages_sent = 0; - char command[256], screen[32] = ""; + char command[512], screen[256] = ""; psx+=sx; psy+=sy; if (is_message_recieved) @@ -432,7 +432,7 @@ void DispatchEvent(XEvent *Event) case KeyPress: { int dx = 0, dy = 0; - char command[64]; + char command[256]; char keychar; KeySym keysym; @@ -1267,7 +1267,7 @@ void SwitchToDeskAndPage(XEvent *Event) void IconSwitchPage(XEvent *Event) { int vx, vy; - char command[34]; + char command[256]; struct fpmonitor *fp = fpmonitor_this(NULL); if (fp == NULL) {