changeset 8087:b00d7fe62596

[gaim-migrate @ 8786] ints is ints and chars is chars committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Tue, 13 Jan 2004 00:43:57 +0000
parents 55431e80a783
children a86784e3b98c
files src/protocols/yahoo/yahoo.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Tue Jan 13 00:03:27 2004 +0000
+++ b/src/protocols/yahoo/yahoo.c	Tue Jan 13 00:43:57 2004 +0000
@@ -874,12 +874,14 @@
 {
 	char *converted;
 	char *p, *n, *new;
+	int i;
 	
 	n = new = g_malloc(strlen (text) + 1);
 
 	for (p = (char *)text; *p; p++, n++) {
 		if (*p == '\\') {
-			sscanf(p + 1, "%3o\n", (int *)n);
+			sscanf(p + 1, "%3o\n", &i);
+			*n = (char)i;
 			p += 3;
 		}
 		else