# HG changeset patch # User Mark Doliner # Date 1053654317 0 # Node ID 3c7748b244107355b2abd64add01be0fbe44e355 # Parent b7c0be69c749370af6253f5a035641a96c4ef14e [gaim-migrate @ 5893] I changed some small things. 1) 3 comments in 3 different files which makes "make docs" not give 3 warnings. 2) Made frombase16 return-via-parameter an unsigned char* instead of a char*. Nothing actually uses frombase16, so this doesn't affect anything, but it mirrors Nathan's change to tobase16, and should make the conversion work correctly. 3) Fixed the bug Luke mailed to gaim-devel on Monday: "sign on, change an aim account's email address, sign off, segfault. it's happened 2x now" --Luke "The Yellow Dart" Schierer committer: Tailor Script diff -r b7c0be69c749 -r 3c7748b24410 src/blist.h --- a/src/blist.h Fri May 23 00:48:20 2003 +0000 +++ b/src/blist.h Fri May 23 01:45:17 2003 +0000 @@ -1,5 +1,5 @@ /** - * @file list.h Buddy List API + * @file blist.h Buddy List API * @ingroup core * * gaim diff -r b7c0be69c749 -r 3c7748b24410 src/gtkdebug.h --- a/src/gtkdebug.h Fri May 23 00:48:20 2003 +0000 +++ b/src/gtkdebug.h Fri May 23 01:45:17 2003 +0000 @@ -1,5 +1,5 @@ /** - * @file gtkdebug.c GTK+ Debug API + * @file gtkdebug.h GTK+ Debug API * @ingroup gtkui * * gaim diff -r b7c0be69c749 -r 3c7748b24410 src/notify.h --- a/src/notify.h Fri May 23 00:48:20 2003 +0000 +++ b/src/notify.h Fri May 23 01:45:17 2003 +0000 @@ -193,5 +193,6 @@ * @param ops The UI operations structure. */ GaimNotifyUiOps *gaim_get_notify_ui_ops(void); +/*@}*/ #endif /* _GAIM_NOTIFY_H_ */ diff -r b7c0be69c749 -r 3c7748b24410 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Fri May 23 00:48:20 2003 +0000 +++ b/src/protocols/oscar/oscar.c Fri May 23 01:45:17 2003 +0000 @@ -3717,6 +3717,7 @@ gaim_debug(GAIM_DEBUG_INFO, "oscar", "setting email\n"); aim_admin_setemail(sess, fr->conn, od->email); g_free(od->email); + od->email = NULL; od->setemail = FALSE; } diff -r b7c0be69c749 -r 3c7748b24410 src/util.c --- a/src/util.c Fri May 23 00:48:20 2003 +0000 +++ b/src/util.c Fri May 23 01:45:17 2003 +0000 @@ -486,15 +486,15 @@ /* * Converts a null-terminated string of hexidecimal to raw data. */ -int frombase16(const char *ascii, char **raw) +int frombase16(const char *ascii, unsigned char **raw) { int len, i, accumulator=0; - char *data; + unsigned char *data; if (!ascii || !(len = strlen(ascii)) || (len % 2)) return 0; - data = (char *)malloc((len/2)*sizeof(char)); + data = malloc(len/2); for (i=0; i