Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 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 | 2c4cfb63ce60 |
children | d60272410bd5 |
comparison
equal
deleted
inserted
replaced
8086:55431e80a783 | 8087:b00d7fe62596 |
---|---|
872 | 872 |
873 static char *yahoo_decode(const char *text) | 873 static char *yahoo_decode(const char *text) |
874 { | 874 { |
875 char *converted; | 875 char *converted; |
876 char *p, *n, *new; | 876 char *p, *n, *new; |
877 int i; | |
877 | 878 |
878 n = new = g_malloc(strlen (text) + 1); | 879 n = new = g_malloc(strlen (text) + 1); |
879 | 880 |
880 for (p = (char *)text; *p; p++, n++) { | 881 for (p = (char *)text; *p; p++, n++) { |
881 if (*p == '\\') { | 882 if (*p == '\\') { |
882 sscanf(p + 1, "%3o\n", (int *)n); | 883 sscanf(p + 1, "%3o\n", &i); |
884 *n = (char)i; | |
883 p += 3; | 885 p += 3; |
884 } | 886 } |
885 else | 887 else |
886 *n = *p; | 888 *n = *p; |
887 } | 889 } |