From f19390724b8b3bab3df7bb2bddb4a3bdb4a165b3 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 8 Sep 2015 22:26:51 +0800 Subject: [PATCH] fix #393 --- src/manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manager.c b/src/manager.c index f9b9c9c0..cc1da277 100644 --- a/src/manager.c +++ b/src/manager.c @@ -160,11 +160,11 @@ static char *get_action(char *buf, int len) { char *action; int pos = 0; - while(isspace(buf[pos]) && pos < len) pos++; + while(isspace((unsigned char)buf[pos]) && pos < len) pos++; if (pos == len) return NULL; action = buf + pos; - while((!isspace(buf[pos]) && buf[pos] != ':') && pos < len) pos++; + while((!isspace((unsigned char)buf[pos]) && buf[pos] != ':') && pos < len) pos++; buf[pos] = '\0'; return action;