Tue, 20 May 2003 00:45:35 +0000
[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: Nathan Walp <nwalp@pidgin.im>
| src/plugin.c | file | annotate | diff | comparison | revisions | |
| src/util.c | file | annotate | diff | comparison | revisions |
--- a/src/plugin.c Mon May 19 17:27:03 2003 +0000 +++ b/src/plugin.c Tue May 20 00:45:35 2003 +0000 @@ -183,7 +183,7 @@ plugin = gaim_plugin_new(is_so_file(filename, PLUGIN_EXT), filename); if (plugin->native_plugin) { - char *error; + const char *error; plugin->handle = g_module_open(filename, 0); if (plugin->handle == NULL) {
--- 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]);