Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/util.c @ 22155:a886e43210b1
Fix (hopefully) the last problem in this function. Refs #3295.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sat, 19 Jan 2008 04:17:44 +0000 |
parents | 33abfb98a460 |
children | bf7ce9629402 e9cf897bd873 |
comparison
equal
deleted
inserted
replaced
22154:f577201bf30f | 22155:a886e43210b1 |
---|---|
166 | 166 |
167 char *yahoo_convert_to_numeric(const char *str) | 167 char *yahoo_convert_to_numeric(const char *str) |
168 { | 168 { |
169 GString *gstr = NULL; | 169 GString *gstr = NULL; |
170 char *retstr; | 170 char *retstr; |
171 const char *p; | 171 const unsigned char *p; |
172 | 172 |
173 gstr = g_string_sized_new(strlen(str) * 6 + 1); | 173 gstr = g_string_sized_new(strlen(str) * 6 + 1); |
174 | 174 |
175 for (p = str; *p; p++) { | 175 for (p = (unsigned char *)str; *p; p++) { |
176 g_string_append_printf(gstr, "&#%u;", *p); | 176 g_string_append_printf(gstr, "&#%u;", *p); |
177 } | 177 } |
178 | 178 |
179 retstr = gstr->str; | 179 retstr = gstr->str; |
180 | 180 |