Mercurial > pidgin
diff libpurple/log.c @ 23287:173c612752ea
Correctly detect system logs.
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Thu, 05 Jun 2008 10:16:23 +0000 |
| parents | f15d9ded0c45 |
| children | d1eee441bf25 |
line wrap: on
line diff
--- 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;
