diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-08-01 16:07:22 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-08-01 16:07:22 +0000 |
commit | 6d42a00287ff144c5c597b5da158961e0c22847d (patch) | |
tree | f57e4405aa5cd5de1be8f8831bdc0a8fd368763e /src | |
parent | 240a7df160dc3ae48657fd1b5d86f931ef07ee20 (diff) | |
download | irssi-6d42a00287ff144c5c597b5da158961e0c22847d.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/dcc/dcc-resume.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/dcc/dcc-resume.c b/src/irc/dcc/dcc-resume.c index 3f4a6ee0..ae070ac5 100644 --- a/src/irc/dcc/dcc-resume.c +++ b/src/irc/dcc/dcc-resume.c @@ -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) { |