libpurple/log.c

changeset 23430
b26a5d982d62
parent 22979
29ca0829efe0
child 23502
938fcfe1d88d
--- a/libpurple/log.c	Thu Jun 05 00:44:58 2008 +0000
+++ b/libpurple/log.c	Thu Jun 05 10:16:23 2008 +0000
@@ -1067,7 +1067,7 @@
 				set->normalized_name = g_strdup(purple_normalize(account, name));
 
 				/* Chat for .chat or .system at the end of the name to determine the type. */
-				if (len > 7) {
+				if (len >= 7) {
 					gchar *tmp = &name[len - 7];
 					if (!strcmp(tmp, ".system")) {
 						set->type = PURPLE_LOG_SYSTEM;

mercurial