Mercurial > pidgin.yaz
diff src/util.c @ 5450:bb1e160467b6
[gaim-migrate @ 5838]
Thanks to J P (j_pong) for tracking this down, this fixes base16, and might
fix the corrupt buddy lists for the win32 folk
also there's a cleanup for a compile warning
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 20 May 2003 00:45:35 +0000 |
parents | a2f26666de42 |
children | e1cc0c67e123 |
line wrap: on
line diff
--- a/src/util.c Mon May 19 17:27:03 2003 +0000 +++ b/src/util.c Tue May 20 00:45:35 2003 +0000 @@ -470,12 +470,12 @@ char *tobase16(const char *data, int length) { int i; - char *ascii = NULL; + unsigned char *ascii = NULL; if (!data || !length) return NULL; - ascii = (char *)malloc(length*2 + 1); + ascii = malloc(length*2 + 1); for (i=0; i<length; i++) snprintf(&ascii[i*2], 3, "%02hhx", data[i]);