Fix crashing bug triggered through awesome-client
This commit is contained in:
parent
c8d81a5a18
commit
417c7a5116
3
uicb.c
3
uicb.c
|
@ -111,7 +111,8 @@ run_uicb(char *cmd, awesome_config *awesomeconf)
|
||||||
|
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
|
|
||||||
if((screen = atoi(cmd)) >= get_screen_count(awesomeconf->display))
|
screen = atoi(cmd);
|
||||||
|
if(screen >= get_screen_count(awesomeconf->display) || screen < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
uicb_name = p;
|
uicb_name = p;
|
||||||
|
|
Loading…
Reference in New Issue