changeset 28447:95f2ddd033f8

strncmp -> g_str_equal
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 25 Oct 2009 23:45:02 +0000
parents 986aa7474fd4
children a5b8f6f2b112
files pidgin/gtkstatusbox.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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")))