Skip to content

Commit

Permalink
irc: fix parsing of DCC filename
Browse files Browse the repository at this point in the history
  • Loading branch information
stoeckmann authored and flashcode committed Apr 22, 2017
1 parent 628313a commit 2fb346f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/irc/irc-ctcp.c
Expand Up @@ -512,7 +512,7 @@ irc_ctcp_dcc_filename_without_quotes (const char *filename)
int length;

length = strlen (filename);
if (length > 0)
if (length > 1)
{
if ((filename[0] == '\"') && (filename[length - 1] == '\"'))
return weechat_strndup (filename + 1, length - 2);
Expand Down

0 comments on commit 2fb346f

Please sign in to comment.