# HG changeset patch # User Mark Doliner # Date 1181509622 0 # Node ID 329ca72df5fa71dda17e5ec0feb6cc2fb4c04383 # Parent b2b91f6e84a9df6fcd917c90d95e394b56809747 Remove a pair of unneeded strlen's Evan, I like your changes diff -r b2b91f6e84a9 -r 329ca72df5fa libpurple/protocols/oscar/oscar.c --- a/libpurple/protocols/oscar/oscar.c Sun Jun 10 20:39:59 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Sun Jun 10 21:07:02 2007 +0000 @@ -5356,7 +5356,6 @@ return -EINVAL; buf = purple_strdup_withhtml(message); - len = strlen(buf); if (strstr(buf, " c->maxlen) || (len > c->maxvis)) { @@ -5389,10 +5387,10 @@ g_free(buf); g_free(buf2); return -E2BIG; - } else { - purple_debug_info("oscar", "Sending %s as %s because the original was too long.", - message, buf2); } + + purple_debug_info("oscar", "Sending %s as %s because the original was too long.", + message, buf2); } if (charset == AIM_CHARSET_ASCII)