[gaim-migrate @ 424]

Fri, 16 Jun 2000 10:01:10 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Fri, 16 Jun 2000 10:01:10 +0000
changeset 414
b2f9d5e4841a
parent 413
5b6c63b5ba38
child 415
3ee978f88b41

[gaim-migrate @ 424]
i really wish solaris' libc would handle null arguments better. for example,
in strlen, all they'd have to do is at the very top, add one line that says
if (!arg) return arg;

src/server.c file | annotate | diff | comparison | revisions
--- a/src/server.c	Fri Jun 16 09:53:28 2000 +0000
+++ b/src/server.c	Fri Jun 16 10:01:10 2000 +0000
@@ -921,7 +921,10 @@
 	}
 #endif
 
-        g_snprintf(buf2, sizeof(buf2), "User '%s' invites you to buddy chat room: '%s'\n%s", who, name, message);
+	if (message)
+		g_snprintf(buf2, sizeof(buf2), "User '%s' invites you to buddy chat room: '%s'\n%s", who, name, message);
+	else
+		g_snprintf(buf2, sizeof(buf2), "User '%s' invites you to buddy chat room: '%s'\n", who, name);
 
         d = gtk_dialog_new();
         gtk_widget_realize(d);

mercurial