dwm-meillo

diff menu.c @ 13:5cc5e55a132d

added protocol killing stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 16:14:22 +0200
parents ea9c08ec4b48
children e8f627998d6f
line diff
     1.1 --- a/menu.c	Tue Jul 11 14:53:22 2006 +0200
     1.2 +++ b/menu.c	Tue Jul 11 16:14:22 2006 +0200
     1.3 @@ -304,7 +304,7 @@
     1.4  		}
     1.5  		break;
     1.6  	default:
     1.7 -		if((num == 1) && !iscntrl((int) buf[0])) {
     1.8 +		if(num && !iscntrl((int) buf[0])) {
     1.9  			buf[num] = 0;
    1.10  			if(len > 0)
    1.11  				strncat(text, buf, sizeof(text));