mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +02:00
Fix dcc resume crash (only in the rc's and svn) (Bug 287)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3895 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
240a7df160
commit
6d42a00287
1 changed files with 3 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ static int dcc_ctcp_resume_parse(int type, const char *data, const char *nick,
|
|||
params = g_strsplit(data, " ", -1);
|
||||
paramcount = strarray_length(params);
|
||||
|
||||
if (paramcount < 3)
|
||||
return 0;
|
||||
|
||||
fileparams = get_file_params_count_resume(params, paramcount);
|
||||
|
||||
if (paramcount >= fileparams + 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue