Update of /cvsroot/gaim/gaim/src/protocols/yahoo
In directory sc8-pr-cvs1:/tmp/cvs-serv18266/src/protocols/yahoo
Modified Files:
yahoo.c
Log Message:
there's a right way and a wrong way to kill off warnings
Index: yahoo.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -p -r1.196 -r1.197
--- yahoo.c 15 Jan 2004 23:26:07 -0000 1.196
+++ yahoo.c 16 Jan 2004 17:13:20 -0000 1.197
@@ -880,16 +880,17 @@ static void yahoo_process_contact(GaimCo
static char *yahoo_decode(const char *text)
{
char *converted;
- char *p, *n, *new, *end;
+ char *n, *new;
+ const char *end, *p;
int i;
-
+
n = new = g_malloc(strlen (text) + 1);
end = text + strlen(text);
- for (p = (char *)text; p < end; p++, n++) {
+ for (p = text; p < end; p++, n++) {
if (*p == '\\') {
sscanf(p + 1, "%3o\n", &i);
- *n = (char)i;
+ *n = i;
p += 3;
}
else
@@ -897,7 +898,7 @@ static char *yahoo_decode(const char *te
}
*n = '\0';
-
+
converted = g_convert(new, n - new, OUT_CHARSET, "iso-8859-1", NULL, NULL, NULL);
g_free(new);
|