1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2001 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-14 12:33:45 +00:00 committed by cras
parent 7481fe606f
commit 4437ac855a

View File

@ -98,7 +98,7 @@ CODE:
av = (AV *) SvRV(formats); av = (AV *) SvRV(formats);
len = av_len(av)+1; len = av_len(av)+1;
if (len == 0 || (len & 1) != 0) if (len == 0 || (len & 1) != 0)
croak("formats list is invalid - not dividable by 3 (%d)", len); croak("formats list is invalid - not divisible by 2 (%d)", len);
formatrecs = g_new0(FORMAT_REC, len/2+2); formatrecs = g_new0(FORMAT_REC, len/2+2);
formatrecs[0].tag = g_strdup(perl_get_package()); formatrecs[0].tag = g_strdup(perl_get_package());