Mercurial > pidgin
changeset 13159:d03013fd39bf
[gaim-migrate @ 15522]
Fix the filename unescaping.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 07 Feb 2006 16:02:25 +0000 |
parents | eed97963252a |
children | 1b48f0ec55e9 |
files | src/log.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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