# HG changeset patch # User Mark Doliner # Date 1122228120 0 # Node ID 35eb95016472b96e2618a98ff3a113951b55d2af # Parent 0ef4fbeeefafbc8b28b20d1ecd1a27385f83eba8 [gaim-migrate @ 13232] Stop leaking 80 bytes all over the place in zephyr in HEAD, too committer: Tailor Script diff -r 0ef4fbeeefaf -r 35eb95016472 src/protocols/zephyr/zephyr.c --- a/src/protocols/zephyr/zephyr.c Sun Jul 24 08:15:55 2005 +0000 +++ b/src/protocols/zephyr/zephyr.c Sun Jul 24 18:02:00 2005 +0000 @@ -172,7 +172,6 @@ } char *local_zephyr_normalize(zephyr_account* zephyr,const char *); -static const char *zephyr_normalize(const GaimAccount *, const char *); static void zephyr_chat_set_topic(GaimConnection * gc, int id, const char *topic); char* zephyr_tzc_deescape_str(const char *message); @@ -2150,24 +2149,6 @@ return 1; } -static const char *zephyr_normalize(const GaimAccount * account, const char *orig) -{ - /* returns the string you gave it. Maybe this function shouldn't be here */ - static char buf[80]; - /* gaim_debug_error("zephyr","entering zephyr_normalize\n"); */ - - if (!g_ascii_strcasecmp(orig, "")) { - buf[0] = '\0'; - return buf; - } else { - g_snprintf(buf, 80, "%s", orig); - } - /* gaim_debug_error("zephyr","leaving zephyr_normalize\n"); */ - - return buf; -} - - char *local_zephyr_normalize(zephyr_account *zephyr,const char *orig) { /* @@ -2830,7 +2811,7 @@ NULL, /* rename_group */ NULL, /* buddy_free */ NULL, /* convo_closed */ - zephyr_normalize, /* normalize */ + NULL, /* normalize */ NULL, /* XXX set_buddy_icon */ NULL, /* remove_group */ NULL, /* XXX get_cb_real_name */