aewl
changeset 611:c7f84f23ec5a 2.5.1
hotfix of a serious crashing bug
author | arg@mig29 |
---|---|
date | Mon, 04 Dec 2006 21:00:26 +0100 |
parents | 29f7d5cc996c |
children | 762c339325b3 |
files | config.mk tag.c view.c |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/config.mk Mon Dec 04 15:39:43 2006 +0100 1.2 +++ b/config.mk Mon Dec 04 21:00:26 2006 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 # dwm version 1.5 -VERSION = 2.5 1.6 +VERSION = 2.5.1 1.7 1.8 # Customize below to fit your system 1.9
2.1 --- a/tag.c Mon Dec 04 15:39:43 2006 +0100 2.2 +++ b/tag.c Mon Dec 04 21:00:26 2006 +0100 2.3 @@ -114,7 +114,8 @@ 2.4 return; 2.5 for(i = 0; i < ntags; i++) 2.6 sel->tags[i] = (arg->i == -1) ? True : False; 2.7 - sel->tags[arg->i] = True; 2.8 + if(arg->i >= 0 && arg->i < ntags) 2.9 + sel->tags[arg->i] = True; 2.10 arrange(); 2.11 } 2.12
3.1 --- a/view.c Mon Dec 04 15:39:43 2006 +0100 3.2 +++ b/view.c Mon Dec 04 21:00:26 2006 +0100 3.3 @@ -234,7 +234,8 @@ 3.4 3.5 for(i = 0; i < ntags; i++) 3.6 seltag[i] = (arg->i == -1) ? True : False; 3.7 - seltag[arg->i] = True; 3.8 + if(arg->i >= 0 && arg->i < ntags) 3.9 + seltag[arg->i] = True; 3.10 arrange(); 3.11 } 3.12