# HG changeset patch # User Richard Laager # Date 1139328145 0 # Node ID d03013fd39bf7522c944aba061b1f3d71027d9ee # Parent eed97963252a65c1153f8f6064ba0f2338173f0d [gaim-migrate @ 15522] Fix the filename unescaping. committer: Tailor Script diff -r eed97963252a -r d03013fd39bf src/log.c --- a/src/log.c Tue Feb 07 14:51:28 2006 +0000 +++ b/src/log.c Tue Feb 07 16:02:25 2006 +0000 @@ -664,7 +664,7 @@ { GDir *dir; GList *list = NULL; - const char *fname; + const char *filename; char *path; if(!account) @@ -680,10 +680,8 @@ return NULL; } - while ((fname = g_dir_read_name(dir))) + while ((filename = g_dir_read_name(dir))) { - const char *filename = gaim_unescape_filename(fname); - if (gaim_str_has_suffix(filename, ext) && strlen(filename) >= (17 + strlen(ext))) { @@ -693,7 +691,7 @@ struct tm tm; long tz_off; const char *rest; - time_t stamp = gaim_str_to_time(filename, FALSE, &tm, &tz_off, &rest); + time_t stamp = gaim_str_to_time(gaim_unescape_filename(filename), FALSE, &tm, &tz_off, &rest); char *end; /* As zero is a valid offset, GAIM_NO_TZ_OFF means no offset was