pidgin: 4d120986: strncmp -> g_str_equal

khc at pidgin.im khc at pidgin.im
Tue Oct 27 04:01:17 EDT 2009


-----------------------------------------------------------------
Revision: 4d1209864318042ae3115b3a9bcba581b5003ddf
Ancestor: 0d15b8b20c9b02f8869ff2f37e278aed21ff0b56
Author: khc at pidgin.im
Date: 2009-10-25T23:45:02
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4d1209864318042ae3115b3a9bcba581b5003ddf

Modified files:
        pidgin/gtkstatusbox.c

ChangeLog: 

strncmp -> g_str_equal


-------------- next part --------------
============================================================
--- pidgin/gtkstatusbox.c	cb7a790aeaf08e2160b73ea1b3eedf9d448f42a6
+++ pidgin/gtkstatusbox.c	f2739235f99018bd14fb15166f364c2c937756ef
@@ -2393,7 +2393,7 @@ activate_currently_selected_status(Pidgi
 			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 @@ activate_currently_selected_status(Pidgi
 		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")))


More information about the Commits mailing list