summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--siv.c2
-rw-r--r--window.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/siv.c b/siv.c
index ac60ff0..b899845 100644
--- a/siv.c
+++ b/siv.c
@@ -248,7 +248,7 @@ app_new (int argc, char **argv)
if (g_path_is_absolute (option))
{
- name = option;
+ name = g_strdup (option);
}
else
{
diff --git a/window.c b/window.c
index 31f6daf..b71820a 100644
--- a/window.c
+++ b/window.c
@@ -238,11 +238,11 @@ save_meta_data (Window *window)
vadj = gtk_scrolled_window_get_vadjustment (get_widget (window, "scrolled_window"));
hadj = gtk_scrolled_window_get_hadjustment (get_widget (window, "scrolled_window"));
-
+
app_set_meta_data (window->app,
window->filename,
x, y, width, height,
- bg, smooth,
+ smooth, bg,
window->zoom_level,
vadj->value, hadj->value);
}