mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 12:26:40 +02:00
irc: fix parsing of DCC filename
This commit is contained in:
committed by
Sébastien Helleu
parent
628313a663
commit
2fb346f25f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user