1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Fixed a couple of potential problems if there was longer lines than 64k

in help files, autorun file or /catted file.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@417 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-02 18:23:31 +00:00 committed by cras
parent b9cfabc419
commit 7d1cbac459
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ static void sig_autorun(void)
ret = line_split(tmpbuf, recvlen, &str, &buffer);
if (ret > 0) eval_special_string(str, "", active_win->active_server, active_win->active);
} while (ret > 0);
} while (ret >= 0);
line_split_free(buffer);
close(f);

View File

@ -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);