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 wrap: on
line diff
--- a/menu.c	Tue Jul 11 14:53:22 2006 +0200
+++ b/menu.c	Tue Jul 11 16:14:22 2006 +0200
@@ -304,7 +304,7 @@
 		}
 		break;
 	default:
-		if((num == 1) && !iscntrl((int) buf[0])) {
+		if(num && !iscntrl((int) buf[0])) {
 			buf[num] = 0;
 			if(len > 0)
 				strncat(text, buf, sizeof(text));