Skip to content

Commit 2fb346f

Browse files
stoeckmannflashcode
authored andcommitted
irc: fix parsing of DCC filename
1 parent 628313a commit 2fb346f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/plugins/irc/irc-ctcp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ irc_ctcp_dcc_filename_without_quotes (const char *filename)
512512
int length;
513513

514514
length = strlen (filename);
515-
if (length > 0)
515+
if (length > 1)
516516
{
517517
if ((filename[0] == '\"') && (filename[length - 1] == '\"'))
518518
return weechat_strndup (filename + 1, length - 2);

0 commit comments

Comments
 (0)