pidgin/plugins/perl/common/GtkIMHtml.xs

branch
release-2.x.y
changeset 36029
cd7db320cf5c
parent 35992
34a67264df99
equal deleted inserted replaced
36028:fc5300cb3617 36029:cd7db320cf5c
174 if (unused) 174 if (unused)
175 t_len = av_len((AV *)SvRV(unused)); 175 t_len = av_len((AV *)SvRV(unused));
176 else 176 else
177 t_len = 0; 177 t_len = 0;
178 178
179 for (i = 0; i <= t_len; i++) { 179 for (i = 0; i <= t_len && unused; i++) {
180 STRLEN t_sl; 180 STRLEN t_sl;
181 t_GL = g_slist_append(t_GL, SvPV(*av_fetch((AV *)SvRV(unused), i, 0), t_sl)); 181 t_GL = g_slist_append(t_GL, SvPV(*av_fetch((AV *)SvRV(unused), i, 0), t_sl));
182 } 182 }
183 gtk_imhtml_append_text_with_images(imhtml, text, options, t_GL); 183 gtk_imhtml_append_text_with_images(imhtml, text, options, t_GL);
184 184

mercurial