pidgin: a4b1dc8f: Correctly detect system logs.

sadrul at pidgin.im sadrul at pidgin.im
Thu Jun 5 06:25:42 EDT 2008


-----------------------------------------------------------------
Revision: a4b1dc8ffb42dbdc2fed7229698a957e9529ed33
Ancestor: cbf593890e5d470d6670f936199a599f52f3b0ec
Author: sadrul at pidgin.im
Date: 2008-06-05T10:16:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a4b1dc8ffb42dbdc2fed7229698a957e9529ed33

Modified files:
        libpurple/log.c

ChangeLog: 

Correctly detect system logs.

-------------- next part --------------
============================================================
--- libpurple/log.c	f3c5389236d89eb25cfe6490c4e06d427f467935
+++ libpurple/log.c	be935ee2410e66e1b84ac7280a6a272f4b663e4a
@@ -1067,7 +1067,7 @@ static void log_get_log_sets_common(GHas
 				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;


More information about the Commits mailing list