diff libpurple/server.c @ 15744:8e24d43f529a

Comments
author Mark Doliner <mark@kingant.net>
date Thu, 01 Mar 2007 08:26:07 +0000
parents e023cc99eb39
children 32c366eeeb99
line wrap: on
line diff
--- a/libpurple/server.c	Thu Mar 01 08:00:19 2007 +0000
+++ b/libpurple/server.c	Thu Mar 01 08:26:07 2007 +0000
@@ -448,6 +448,7 @@
 	 * been given us by the prpls. So we create temp holders and pass
 	 * those instead. It's basically just to avoid segfaults.
 	 */
+	/* TODO: MAX(message, BUF_LONG) is pretty ugly. */
 	buffy = g_malloc(MAX(strlen(msg) + 1, BUF_LONG));
 	strcpy(buffy, msg);
 	angel = g_strdup(who);
@@ -771,7 +772,7 @@
 	 * data is binary, plugins don't see it. Bitch all you want; i really
 	 * don't want you to be dealing with it.
 	 */
-
+	/* TODO: MAX(message, BUF_LONG) is pretty ugly. */
 	buffy = g_malloc(MAX(strlen(message) + 1, BUF_LONG));
 	strcpy(buffy, message);
 	angel = g_strdup(who);