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;