# HG changeset patch # User Ka-Hing Cheung # Date 1256514302 0 # Node ID 95f2ddd033f860d24b11db4987e46a0cdbbd6b0d # Parent 986aa7474fd4d6761037338a96ba08719161f596 strncmp -> g_str_equal diff -r 986aa7474fd4 -r 95f2ddd033f8 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Sun Oct 25 23:39:45 2009 +0000 +++ b/pidgin/gtkstatusbox.c Sun Oct 25 23:45:02 2009 +0000 @@ -2393,7 +2393,7 @@ acct_status_type = find_status_type_by_index(status_box->token_status_account, active); id = purple_status_type_get_id(acct_status_type); - if (strncmp(id, purple_status_get_id(status), strlen(id)) == 0) + if (g_str_equal(id, purple_status_get_id(status))) { /* Selected status and previous status is the same */ if (purple_strequal(message, purple_status_get_attr_string(status, "message"))) @@ -2495,7 +2495,7 @@ status_type = find_status_type_by_index(status_box->account, active); id = purple_status_type_get_id(status_type); - if (strncmp(id, purple_status_get_id(status), strlen(id)) == 0) + if (g_str_equal(id, purple_status_get_id(status))) { /* Selected status and previous status is the same */ if (purple_strequal(message, purple_status_get_attr_string(status, "message")))