aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs')
-rw-r--r--calendar/pcs/cal-backend.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c
index ee1b397e25..be92b2b031 100644
--- a/calendar/pcs/cal-backend.c
+++ b/calendar/pcs/cal-backend.c
@@ -447,11 +447,11 @@ typedef struct {
static gchar *
cal_backend_log_name (GnomeVFSURI *uri)
{
- gchar *path, *filename;
+ const gchar *path;
+ gchar *filename;
- path = gnome_vfs_uri_extract_dirname (uri);
- filename = g_strdup_printf ("%slog.xml", path);
- g_free (path);
+ path = gnome_vfs_uri_get_path (uri);
+ filename = g_strdup_printf ("%s.log.xml", path);
return filename;
}