This commit is contained in:
Max Lv
2017-01-23 08:44:36 +08:00
parent bcdc5559a8
commit 2d3a1b2a3e
+1 -1
View File
@@ -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;