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++)