summaryrefslogtreecommitdiffstats
path: root/patches/source/irssi/patch-src_irc_dcc_dcc-resume_c.diff
blob: 5b1994a609a2d18736fafb940089f82f8bf497b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
$OpenBSD$
--- src/irc/dcc/dcc-resume.c.orig	Tue Jun  6 18:03:50 2017
+++ src/irc/dcc/dcc-resume.c	Tue Jun  6 18:03:00 2017
@@ -62,6 +62,8 @@ int get_file_params_count_resume(char **params, int pa
 	if (*params[0] == '"') {
 		/* quoted file name? */
 		for (pos = 0; pos < paramcount-2; pos++) {
+			if (strlen(params[pos]) == 0)
+				continue;
 			if (params[pos][strlen(params[pos])-1] == '"' &&
 			    get_params_match_resume(params, pos+1))
 				return pos+1;