summaryrefslogtreecommitdiff
path: root/libpurple
diff options
context:
space:
mode:
authorJohn Bailey <rekkanoryo@rekkanoryo.org>2008-12-11 22:36:29 +0000
committerJohn Bailey <rekkanoryo@rekkanoryo.org>2008-12-11 22:36:29 +0000
commit6179370bfde37c1b1495be71f0802e55b4c2df65 (patch)
treef01f78a7fbed77b346e19e861d14ee08dc16fa18 /libpurple
parentd4f61ff83a9197a26e05208e7854f40fae29d529 (diff)
downloadpidgin-6179370bfde37c1b1495be71f0802e55b4c2df65.tar.gz
disapproval of revision '2d9389f32256ca757b17d7cabe9d9beebce0d311'
Diffstat (limited to 'libpurple')
-rw-r--r--libpurple/plugins/perl/common/Account.xs8
-rw-r--r--libpurple/plugins/perl/common/AccountOpts.xs4
-rw-r--r--libpurple/plugins/perl/common/Conversation.xs10
-rw-r--r--libpurple/plugins/perl/common/Prefs.xs8
-rw-r--r--libpurple/plugins/perl/common/Roomlist.xs2
-rw-r--r--libpurple/plugins/perl/common/Status.xs4
6 files changed, 18 insertions, 18 deletions
diff --git a/libpurple/plugins/perl/common/Account.xs b/libpurple/plugins/perl/common/Account.xs
index 558f12af7c..1f18fcf06d 100644
--- a/libpurple/plugins/perl/common/Account.xs
+++ b/libpurple/plugins/perl/common/Account.xs
@@ -105,7 +105,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(status_types)) + 1;
+ t_len = av_len((AV *)SvRV(status_types));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(status_types), i, 0)));
@@ -207,7 +207,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(list)) + 1;
+ t_len = av_len((AV *)SvRV(list));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(list), i, 0)));
@@ -236,13 +236,13 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL1 = NULL;
- t_len = av_len((AV *)SvRV(A)) + 1;
+ t_len = av_len((AV *)SvRV(A));
for (i = 0; i < t_len; i++)
t_GL1 = g_list_append(t_GL1, SvPVutf8_nolen(*av_fetch((AV *)SvRV(A), i, 0)));
t_GL2 = NULL;
- t_len = av_len((AV *)SvRV(B)) + 1;
+ t_len = av_len((AV *)SvRV(B));
for (i = 0; i < t_len; i++)
t_GL2 = g_list_append(t_GL2, SvPVutf8_nolen(*av_fetch((AV *)SvRV(B), i, 0)));
diff --git a/libpurple/plugins/perl/common/AccountOpts.xs b/libpurple/plugins/perl/common/AccountOpts.xs
index 17b12c70fd..e2a5986655 100644
--- a/libpurple/plugins/perl/common/AccountOpts.xs
+++ b/libpurple/plugins/perl/common/AccountOpts.xs
@@ -42,7 +42,7 @@ PREINIT:
int i, t_len;
CODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(values)) + 1;
+ t_len = av_len((AV *)SvRV(values));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(values), i, 0)));
@@ -130,7 +130,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(values)) + 1;
+ t_len = av_len((AV *)SvRV(values));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(values), i, 0)));
diff --git a/libpurple/plugins/perl/common/Conversation.xs b/libpurple/plugins/perl/common/Conversation.xs
index e8e2114b9b..7860fa2fdf 100644
--- a/libpurple/plugins/perl/common/Conversation.xs
+++ b/libpurple/plugins/perl/common/Conversation.xs
@@ -334,7 +334,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(users)) + 1;
+ t_len = av_len((AV *)SvRV(users));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(users), i, 0)));
@@ -372,7 +372,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(ignored)) + 1;
+ t_len = av_len((AV *)SvRV(ignored));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(ignored), i, 0)));
@@ -429,19 +429,19 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL_users = NULL;
- t_len = av_len((AV *)SvRV(users)) + 1;
+ t_len = av_len((AV *)SvRV(users));
for (i = 0; i < t_len; i++)
t_GL_users = g_list_append(t_GL_users, SvPVutf8_nolen(*av_fetch((AV *)SvRV(users), i, 0)));
t_GL_flags = NULL;
- t_len = av_len((AV *)SvRV(flags)) + 1;
+ t_len = av_len((AV *)SvRV(flags));
for (i = 0; i < t_len; i++)
t_GL_flags = g_list_append(t_GL_flags, SvPVutf8_nolen(*av_fetch((AV *)SvRV(flags), i, 0)));
t_GL_extra_msgs = NULL;
- t_len = av_len((AV *)SvRV(extra_msgs)) + 1;
+ t_len = av_len((AV *)SvRV(extra_msgs));
for (i = 0; i < t_len; i++)
t_GL_extra_msgs = g_list_append(t_GL_extra_msgs, SvPVutf8_nolen(*av_fetch((AV *)SvRV(extra_msgs), i, 0)));
diff --git a/libpurple/plugins/perl/common/Prefs.xs b/libpurple/plugins/perl/common/Prefs.xs
index 93cc920b7c..66d4a8b2df 100644
--- a/libpurple/plugins/perl/common/Prefs.xs
+++ b/libpurple/plugins/perl/common/Prefs.xs
@@ -51,7 +51,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(value)) + 1;
+ t_len = av_len((AV *)SvRV(value));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(value), i, 0)));
@@ -73,7 +73,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(value)) + 1;
+ t_len = av_len((AV *)SvRV(value));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(value), i, 0)));
@@ -202,7 +202,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(value)) + 1;
+ t_len = av_len((AV *)SvRV(value));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(value), i, 0)));
@@ -224,7 +224,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(value)) + 1;
+ t_len = av_len((AV *)SvRV(value));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(value), i, 0)));
diff --git a/libpurple/plugins/perl/common/Roomlist.xs b/libpurple/plugins/perl/common/Roomlist.xs
index b5e322f95c..c5ba0e789f 100644
--- a/libpurple/plugins/perl/common/Roomlist.xs
+++ b/libpurple/plugins/perl/common/Roomlist.xs
@@ -78,7 +78,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(fields)) + 1;
+ t_len = av_len((AV *)SvRV(fields));
for (i = 0; i < t_len; i++)
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(fields), i, 0)));
diff --git a/libpurple/plugins/perl/common/Status.xs b/libpurple/plugins/perl/common/Status.xs
index 8dcd890f72..b1ef806c12 100644
--- a/libpurple/plugins/perl/common/Status.xs
+++ b/libpurple/plugins/perl/common/Status.xs
@@ -83,7 +83,7 @@ PREINIT:
int i, t_len;
PPCODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(source_list)) + 1;
+ t_len = av_len((AV *)SvRV(source_list));
for (i = 0; i < t_len; i++) {
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(source_list), i, 0)));
@@ -379,7 +379,7 @@ PREINIT:
int i, t_len;
CODE:
t_GL = NULL;
- t_len = av_len((AV *)SvRV(status_types)) + 1;
+ t_len = av_len((AV *)SvRV(status_types));
for (i = 0; i < t_len; i++) {
t_GL = g_list_append(t_GL, SvPVutf8_nolen(*av_fetch((AV *)SvRV(status_types), i, 0)));