ii

git clone https://orangeshoelaces.net/git/ii.git

4c4403721f81ff932b8c5e15eb9ec34cbf23e4b7

Author: nion@localhost on 06/17/2006

Committer: nion@localhost on 06/17/2006

ein libcall weniger

Stats

ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/ii.c b/ii.c
index 1b738b8..8256ecc 100644
--- a/ii.c
+++ b/ii.c
@@ -301,7 +301,7 @@ static void proc_server_cmd(char *buf)
 {
 	char *argv[TOK_LAST], *cmd, *p;
 	int i;
-	if(!buf || strlen(buf)<1)
+	if(!buf || *buf=='\0')
 		return;
 
 	for(i = 0; i < TOK_LAST; i++)