changeset 12621:8aa0a62cf080

[gaim-migrate @ 14957] better code committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 22 Dec 2005 13:56:18 +0000
parents 13599d978a31
children b7860c9902f2
files src/protocols/zephyr/zephyr.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/zephyr/zephyr.c	Thu Dec 22 04:37:10 2005 +0000
+++ b/src/protocols/zephyr/zephyr.c	Thu Dec 22 13:56:18 2005 +0000
@@ -1598,7 +1598,7 @@
 			   fsh username@hostname pathtotzc -e %s
 			*/
 			while(tzc_cmd_array[i] != NULL){
-				if (!g_strncasecmp(tzc_cmd_array[i],"%s",2)) {
+				if (!g_ascii_strncasecmp(tzc_cmd_array[i],"%s",2)) {
 					/*					fprintf(stderr,"replacing %%s with %s\n",zephyr->exposure); */
 					tzc_cmd_array[i] = g_strdup(zephyr->exposure);
 					found_ps = TRUE;
@@ -1733,7 +1733,7 @@
 							zephyr->realm = g_strdup_printf("%s",realm+1);
 						else {
 							realm = (gchar *)gaim_account_get_string(gc->account,"realm","");
-							if (!g_strcasecmp(realm,"")) {
+							if (!*realm) {
 								realm = "local-realm";
 							}
 							zephyr->realm = g_strdup(realm);
@@ -1769,16 +1769,16 @@
 		z_call_s(ZSetLocation((char *)zephyr->exposure), "Couldn't set location");
 
 		realm = (gchar *)gaim_account_get_string(gc->account,"realm","");
-		if (!g_strcasecmp(realm,"")) {
+		if (!*realm) {
 			realm = ZGetRealm();
-		} 
+		}
 		zephyr->realm = g_strdup(realm);
 		g_strlcpy(__Zephyr_realm, (const char*)zephyr->realm, REALM_SZ-1);
 		zephyr->username = g_strdup(ZGetSender());
 
 		/*		zephyr->realm = g_strdup(ZGetRealm()); */
 		gaim_debug_info("zephyr","realm: %s\n",zephyr->realm);
-	} 
+	}
 	else {
 		gaim_connection_error(gc,"Only ZEPH0.2 supported currently");
 		return;