irc: fix parsing of DCC filename
(cherry picked from commit 2fb346f25f79e412cf0ed314fdf791763c19b70b)
This commit is contained in:
parent
fb1a0231b7
commit
c6c9566fbb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user