Mercurial > pidgin
changeset 16294:a910080ccf8b
mmm, magic numbers! strlen("purple-") != strlen("gaim-") ...
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 21 Apr 2007 17:11:35 +0000 |
parents | b9323295ba2f |
children | bb8b24032089 aae14296a349 645d718e8112 |
files | libpurple/plugins/tcl/tcl_ref.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/tcl/tcl_ref.c Sat Apr 21 16:35:27 2007 +0000 +++ b/libpurple/plugins/tcl/tcl_ref.c Sat Apr 21 17:11:35 2007 +0000 @@ -116,14 +116,14 @@ void *value; if (strlen(bytes) < 7 - || strncmp(bytes, "purple-", 5) + || strncmp(bytes, "purple-", 7) || (ptr = strchr(bytes, ':')) == NULL - || (ptr - bytes) == 5) + || (ptr - bytes) == 7) goto badobject; /* Bad Ethan */ *ptr = '\0'; - type = purple_stringref_new(bytes + 5); + type = purple_stringref_new(bytes + 7); *ptr = ':'; ptr++;