diff src/protocols/yahoo/util.c @ 6546:e34907332e46

[gaim-migrate @ 7068] I added translators to help->about. Bueno? I also changed a few .po files minorly, and converting one or 3 to utf-8 from iso-8859-somethingotherthanone. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 21 Aug 2003 03:43:03 +0000
parents 63c449a1022f
children 42fdf16f1dad
line wrap: on
line diff
--- a/src/protocols/yahoo/util.c	Thu Aug 21 03:37:33 2003 +0000
+++ b/src/protocols/yahoo/util.c	Thu Aug 21 03:43:03 2003 +0000
@@ -27,6 +27,8 @@
 #include "prpl.h"
 #include "debug.h"
 
+#include <string.h>
+
 
 /*
  * I found these on some website but i don't know that they actually
@@ -126,9 +128,9 @@
 					continue;
 				else {
 					tmp = g_string_new_len(x + i + 2, j - i - 2);
-					if (tmp->str[0] == '#')
+					if ((tmp->str[0] == '#'))
 						g_string_append_printf(s, "<FONT COLOR=\"%s\">", tmp->str);
-					else if (match = (char *) g_hash_table_lookup(ht, tmp->str))
+					else if ((match = (char *) g_hash_table_lookup(ht, tmp->str)))
 						g_string_append(s, match);
 					else {
 						gaim_debug(GAIM_DEBUG_ERROR, "yahoo",
@@ -159,7 +161,7 @@
 					tmp = g_string_new_len(x + i, j - i + 1);
 					g_string_ascii_down(tmp);
 
-					if (match = (char *) g_hash_table_lookup(ht, tmp->str))
+					if ((match = (char *) g_hash_table_lookup(ht, tmp->str)))
 						g_string_append(s, match);
 					else if (!g_ascii_strncasecmp(tmp->str, "<FADE ", 6) ||
 						!g_ascii_strncasecmp(tmp->str, "<ALT ", 5) ||