From 337ae1a8629f7ef1ed6fc13ce750c1eefc1a938f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 27 Nov 2001 20:29:56 +0000 Subject: 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 --- src/perl/ui/Themes.xs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3