Skip to content
Permalink
Browse files

irc: fix parsing of DCC filename

  • Loading branch information...
stoeckmann authored and flashcode committed Apr 22, 2017
1 parent 628313a commit 2fb346f25f79e412cf0ed314fdf791763c19b70b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/irc/irc-ctcp.c
@@ -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);

0 comments on commit 2fb346f

Please sign in to comment.
You can’t perform that action at this time.