Mercurial > pidgin.yaz
diff pidgin/plugins/perl/common/GtkIMHtml.xs @ 24636:08b65145276a
Fix off-by-ones in the perl loader where av_len is used. Fixes #7687.
committer: John Bailey <rekkanoryo@rekkanoryo.org>
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 11 Dec 2008 06:38:23 +0000 |
parents | cb0750152bf6 |
children | 7fd6e5a72bf1 68a90c95b722 |
line wrap: on
line diff
--- a/pidgin/plugins/perl/common/GtkIMHtml.xs Thu Dec 11 06:32:05 2008 +0000 +++ b/pidgin/plugins/perl/common/GtkIMHtml.xs Thu Dec 11 06:38:23 2008 +0000 @@ -171,7 +171,7 @@ int i, t_len; PPCODE: t_GL = NULL; - t_len = av_len((AV *)SvRV(unused)); + t_len = av_len((AV *)SvRV(unused)) + 1; for (i = 0; i < t_len; i++) { STRLEN t_sl;