summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2017-04-22 15:10:53 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-04-22 15:16:31 +0200
commitc6c9566fbb66a71fe38b59cbf4d036c0160429af (patch)
tree9b4dfbfe1df598188c9772aff9e9891d4caf407d
parentVersion 1.7 (diff)
downloadweechat-c6c9566fbb66a71fe38b59cbf4d036c0160429af.tar.xz
weechat-c6c9566fbb66a71fe38b59cbf4d036c0160429af.zip
irc: fix parsing of DCC filename
(cherry picked from commit 2fb346f25f79e412cf0ed314fdf791763c19b70b)
-rw-r--r--src/plugins/irc/irc-ctcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c
index e62832bcf..8afee681c 100644
--- a/src/plugins/irc/irc-ctcp.c
+++ b/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);