diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-27 20:29:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-27 20:29:56 +0000 |
commit | 337ae1a8629f7ef1ed6fc13ce750c1eefc1a938f (patch) | |
tree | 2696d05aa3431df7f5eb30cf2b2382390eeb26ea /src | |
parent | 8028f969febdbf68101d5a4b00f989f50b34a349 (diff) | |
download | irssi-337ae1a8629f7ef1ed6fc13ce750c1eefc1a938f.zip |
max number of parameters for printformat() was calculated wrong.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2158 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/perl/ui/Themes.xs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/perl/ui/Themes.xs b/src/perl/ui/Themes.xs index f4283f9b..eea5238f 100644 --- a/src/perl/ui/Themes.xs +++ b/src/perl/ui/Themes.xs @@ -132,7 +132,7 @@ PREINIT: CODE: format_create_dest(&dest, NULL, NULL, level, NULL); memset(arglist, 0, sizeof(arglist)); - for (n = 2; n < items && n < MAX_FORMAT_PARAMS-2; n++) { + for (n = 2; n < items && n < MAX_FORMAT_PARAMS+2; n++) { arglist[n-2] = SvPV(ST(n), n_a); } @@ -156,7 +156,7 @@ PREINIT: CODE: format_create_dest(&dest, server, target, level, NULL); memset(arglist, 0, sizeof(arglist)); - for (n = 4; n < items && n < MAX_FORMAT_PARAMS-4; n++) { + for (n = 4; n < items && n < MAX_FORMAT_PARAMS+4; n++) { arglist[n-4] = SvPV(ST(n), n_a); } @@ -179,7 +179,7 @@ PREINIT: CODE: format_create_dest(&dest, NULL, NULL, level, window); memset(arglist, 0, sizeof(arglist)); - for (n = 3; n < items && n < MAX_FORMAT_PARAMS-3; n++) { + for (n = 3; n < items && n < MAX_FORMAT_PARAMS+3; n++) { arglist[n-3] = SvPV(ST(n), n_a); } @@ -202,7 +202,7 @@ PREINIT: CODE: format_create_dest(&dest, item->server, item->name, level, NULL); memset(arglist, 0, sizeof(arglist)); - for (n = 3; n < items && n < MAX_FORMAT_PARAMS-3; n++) { + for (n = 3; n < items && n < MAX_FORMAT_PARAMS+3; n++) { arglist[n-3] = SvPV(ST(n), n_a); } |