|
|
@ -105,7 +105,7 @@ f2b_cmd_parse(const char *src, char *buf, size_t buflen) { |
|
|
|
src++; |
|
|
|
src++; |
|
|
|
/* strip trailing spaces, newlines, etc */ |
|
|
|
/* strip trailing spaces, newlines, etc */ |
|
|
|
strlcpy(line, src, sizeof(line)); |
|
|
|
strlcpy(line, src, sizeof(line)); |
|
|
|
for (size_t l = strlen(line); l > 0 && isspace(line[l]); l--) |
|
|
|
for (size_t l = strlen(line); l >= 1 && isspace(line[l - 1]); l--) |
|
|
|
line[l - 1] = '\0'; |
|
|
|
line[l - 1] = '\0'; |
|
|
|
|
|
|
|
|
|
|
|
if (line[0] == '\0') |
|
|
|
if (line[0] == '\0') |
|
|
|