Proper fix for time_t printing
This commit is contained in:
parent
3a9181eff5
commit
a185f625f9
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ char *file_name_from_path(const char *filepath)
|
||||||
|
|
||||||
void make_backup(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);
|
copy_file(filepath, backup_path);
|
||||||
g_free(backup_path);
|
g_free(backup_path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ void applyClicked(GtkWidget *widget, gpointer data)
|
||||||
gchar *filepath = get_current_theme_path();
|
gchar *filepath = get_current_theme_path();
|
||||||
if (filepath) {
|
if (filepath) {
|
||||||
if (config_is_manual(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);
|
copy_file(filepath, backup_path);
|
||||||
g_free(backup_path);
|
g_free(backup_path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue