From a185f625f96d9f31c1528bed1065bc74970425c6 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 21 Dec 2017 12:33:09 +0100 Subject: [PATCH] Proper fix for time_t printing --- src/tint2conf/main.c | 2 +- src/tint2conf/properties.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint2conf/main.c b/src/tint2conf/main.c index fdff45e..bcb81ae 100644 --- a/src/tint2conf/main.c +++ b/src/tint2conf/main.c @@ -100,7 +100,7 @@ char *file_name_from_path(const char *filepath) void make_backup(const char *filepath) { - gchar *backup_path = g_strdup_printf("%s.backup.%ld", filepath, (long)time(NULL)); + gchar *backup_path = g_strdup_printf("%s.backup.%lld", filepath, (long long)time(NULL)); copy_file(filepath, backup_path); g_free(backup_path); } diff --git a/src/tint2conf/properties.c b/src/tint2conf/properties.c index d028f21..1f5961b 100644 --- a/src/tint2conf/properties.c +++ b/src/tint2conf/properties.c @@ -181,7 +181,7 @@ void applyClicked(GtkWidget *widget, gpointer data) gchar *filepath = get_current_theme_path(); if (filepath) { if (config_is_manual(filepath)) { - gchar *backup_path = g_strdup_printf("%s.backup.%ld", filepath, (long)time(NULL)); + gchar *backup_path = g_strdup_printf("%s.backup.%lld", filepath, (long long)time(NULL)); copy_file(filepath, backup_path); g_free(backup_path); }