dwm-meillo
diff tag.c @ 611:c7f84f23ec5a
hotfix of a serious crashing bug
author | arg@mig29 |
---|---|
date | Mon, 04 Dec 2006 21:00:26 +0100 |
parents | dcbbfabc8ecc |
children | e90bf387bf6f |
line diff
1.1 --- a/tag.c Mon Dec 04 15:39:43 2006 +0100 1.2 +++ b/tag.c Mon Dec 04 21:00:26 2006 +0100 1.3 @@ -114,7 +114,8 @@ 1.4 return; 1.5 for(i = 0; i < ntags; i++) 1.6 sel->tags[i] = (arg->i == -1) ? True : False; 1.7 - sel->tags[arg->i] = True; 1.8 + if(arg->i >= 0 && arg->i < ntags) 1.9 + sel->tags[arg->i] = True; 1.10 arrange(); 1.11 } 1.12