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:
parent
b9cfabc419
commit
7d1cbac459
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user