From: Nathan W. <fac...@us...> - 2004-01-16 17:13:24
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv18266/src Modified Files: util.c Log Message: there's a right way and a wrong way to kill off warnings Index: util.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/util.c,v retrieving revision 1.265 retrieving revision 1.266 diff -u -d -p -r1.265 -r1.266 --- util.c 16 Jan 2004 13:36:45 -0000 1.265 +++ util.c 16 Jan 2004 17:13:20 -0000 1.266 @@ -250,16 +250,17 @@ gaim_base64_decode(const char *text, cha void gaim_quotedp_decode(const char *str, char **ret_str, int *ret_len) { - char *p, *n, *new, *end; + char *n, *new; + const char *end, *p; int i; n = new = g_malloc(strlen (str) + 1); - end = (char *)str + strlen(str); + end = str + strlen(str); - for (p = (char *)str; p < end; p++, n++) { + for (p = str; p < end; p++, n++) { if (*p == '=') { sscanf(p + 1, "%2x\n", &i); - *n = (char)i; + *n = i; p += 2; } else if (*p == '_') |