summaryrefslogtreecommitdiff
path: root/src/plugins/perl/weechat-perl.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-01-11 13:27:14 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-01-11 13:27:14 +0100
commit4a554d48d2f3a3d93dc66e11eec064cc245697ab (patch)
treeab18940b406130b91cad746ed1e2503c65855ad9 /src/plugins/perl/weechat-perl.c
parent0b1550afe106f28a9d547bd832b30bebe6e4e649 (diff)
downloadweechat-4a554d48d2f3a3d93dc66e11eec064cc245697ab.zip
perl: fix compilation when multiplicity is disabled
Diffstat (limited to 'src/plugins/perl/weechat-perl.c')
-rw-r--r--src/plugins/perl/weechat-perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c
index 705f04dc9..785733aeb 100644
--- a/src/plugins/perl/weechat-perl.c
+++ b/src/plugins/perl/weechat-perl.c
@@ -398,7 +398,7 @@ weechat_perl_load (const char *filename)
#else
snprintf (pkgname, sizeof (pkgname), "%s%d", PKG_NAME_PREFIX, perl_num);
perl_num++;
- length = strlen (perl_weechat_code) - 4 + strlen (pkgname) strlen (filename) + 1;
+ length = strlen (perl_weechat_code) - 4 + strlen (pkgname) + strlen (filename) + 1;
perl_code = malloc (length);
if (!perl_code)
return 0;