version 1.3.2.1, 2011/03/16 17:43:07
|
version 1.3.2.2, 2011/05/29 22:42:39
|
Line 1387 cliLoop(linebuffer_t * __restrict buffer, const char *
|
Line 1387 cliLoop(linebuffer_t * __restrict buffer, const char *
|
} else |
} else |
cli_addHistory(buffer, NULL); |
cli_addHistory(buffer, NULL); |
// clear whitespaces |
// clear whitespaces |
for (s = line; isspace(*s); s++); | for (s = line; isspace((int) *s); s++); |
if (*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; |
*++t = 0; |
} |
} |
|
|