Skip to content

Commit

Permalink
FvwmPager: increase command stack size
Browse files Browse the repository at this point in the history
As noticed by ileGITimo -- some commands could be truncated.  Increase
the stack size not just for the IconSwitchPage command, but also others.

Fixes #1146
  • Loading branch information
ThomasAdam committed Dec 22, 2024
1 parent ba6065a commit 2c88d8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/FvwmPager/x_pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 2c88d8d

Please sign in to comment.