Mercurial > pidgin
diff src/log.c @ 7628:e293d0c42ccb
[gaim-migrate @ 8252]
"Hi, my name is Gaim ... and I'm addicted to glib 2.0."
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Tue, 25 Nov 2003 03:30:59 +0000 |
parents | 5381f96fc185 |
children | 5c5acdf8b982 |
line wrap: on
line diff
--- a/src/log.c Tue Nov 25 02:23:25 2003 +0000 +++ b/src/log.c Tue Nov 25 03:30:59 2003 +0000 @@ -246,7 +246,7 @@ { GDir *dir; GList *list = NULL; - const char *filename, *tmp; + const char *filename; char *me = g_strdup(gaim_normalize(account, gaim_account_get_username(account))); const char *prpl = GAIM_PLUGIN_PROTOCOL_INFO @@ -260,8 +260,7 @@ return NULL; } while ((filename = g_dir_read_name(dir))) { - tmp = filename + (strlen(filename) - strlen(ext)); - if (tmp > filename && !strcmp(tmp, ext)) { + if (gaim_str_has_suffix(filename, ext)) { const char *l = filename; struct tm time; GaimLog *log;