From 2d3a1b2a3e81303d153a56a6102a5584035815c0 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 23 Jan 2017 08:44:36 +0800 Subject: [PATCH] Fix #1123 --- src/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.c b/src/manager.c index 4e92eaaf..3cc2dee1 100644 --- a/src/manager.c +++ b/src/manager.c @@ -223,7 +223,7 @@ get_action(char *buf, int len) char *action; int pos = 0; - while (isspace((unsigned char)buf[pos]) && pos < len) + while (pos < len && isspace((unsigned char)buf[pos])) pos++; if (pos == len) { return NULL;