Mercurial > pidgin.yaz
changeset 8088:a86784e3b98c
[gaim-migrate @ 8787]
ints and chars, living in harmony
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Tue, 13 Jan 2004 01:00:24 +0000 |
parents | b00d7fe62596 |
children | 35db601609e3 |
files | src/util.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util.c Tue Jan 13 00:43:57 2004 +0000 +++ b/src/util.c Tue Jan 13 01:00:24 2004 +0000 @@ -251,12 +251,14 @@ gaim_quotedp_decode(const char *str, char **ret_str, int *ret_len) { char *p, *n, *new; + int i; n = new = g_malloc(strlen (str) + 1); for (p = (char *)str; *p; p++, n++) { if (*p == '=') { - sscanf(p + 1, "%2x\n", (int *)n); + sscanf(p + 1, "%2x\n", &i); + *n = (char)i; p += 2; } else if (*p == '_')