Fix crashing bug triggered through awesome-client

This commit is contained in:
Aldo Cortesi 2007-12-12 18:41:57 +11:00 committed by Julien Danjou
parent c8d81a5a18
commit 417c7a5116
1 changed files with 2 additions and 1 deletions

3
uicb.c
View File

@ -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;