--- libaitcli/src/aitcli.c 2011/03/16 17:43:07 1.3.2.1 +++ libaitcli/src/aitcli.c 2011/05/29 22:42:39 1.3.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.c,v 1.3.2.1 2011/03/16 17:43:07 misho Exp $ +* $Id: aitcli.c,v 1.3.2.2 2011/05/29 22:42:39 misho Exp $ * *************************************************************************/ #include "global.h" @@ -1387,9 +1387,9 @@ cliLoop(linebuffer_t * __restrict buffer, const char * } else cli_addHistory(buffer, NULL); // clear whitespaces - for (s = line; isspace(*s); s++); + for (s = line; isspace((int) *s); s++); if (*s) { - for (t = s + strlen(s) - 1; t > s && isspace(*t); t--); + for (t = s + strlen(s) - 1; t > s && isspace((int) *t); t--); *++t = 0; }