diff options
Diffstat (limited to 'src/fe-common/core/fe-core-commands.c')
-rw-r--r-- | src/fe-common/core/fe-core-commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index 39580adf..36517bc2 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -127,7 +127,7 @@ static int show_help(COMMAND_REC *cmd) ret = line_split(tmpbuf, recvlen, &str, &buffer); if (ret > 0) printtext(NULL, NULL, MSGLEVEL_NEVER, str); } - while (ret > 0); + while (ret >= 0); line_split_free(buffer); close(f); @@ -264,7 +264,7 @@ static void cmd_cat(const char *data) ret = line_split(tmpbuf, recvlen, &str, &buffer); if (ret > 0) printtext(NULL, NULL, MSGLEVEL_CLIENTCRAP, "%s", str); - } while (ret > 0); + } while (ret >= 0); line_split_free(buffer); close(f); |