# HG changeset patch # User Sadrul Habib Chowdhury # Date 1212660983 0 # Node ID 173c612752eaf9090ec47587ec75c9aebbe4e09d # Parent 53b7afa0018b3f5c9f9afe87e9afccb70ee7a1b2 Correctly detect system logs. diff -r 53b7afa0018b -r 173c612752ea libpurple/log.c --- 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;