From bb8293da61ddc78fd21c9d61a61aa810a18dea42 Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Tue, 21 May 2013 17:55:40 +0100 Subject: [PATCH] Use g_strdup instead of strdup --- src/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index 72107e3..b3c623c 100644 --- a/src/interface.c +++ b/src/interface.c @@ -126,7 +126,7 @@ static void orage_file_save_button_clicked(GtkButton *button gchar *s; gboolean ok = TRUE; - s = strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->orage_file_entry))); + s = g_strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->orage_file_entry))); if (gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(intf_w->orage_file_rename_rb))) { if (!g_file_test(s, G_FILE_TEST_EXISTS)) { @@ -194,7 +194,7 @@ static void archive_file_save_button_clicked(GtkButton *button gchar *s; gboolean ok = TRUE; - s = strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->archive_file_entry))); + s = g_strdup(gtk_entry_get_text(GTK_ENTRY(intf_w->archive_file_entry))); if (gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(intf_w->archive_file_rename_rb))) { if (!g_file_test(s, G_FILE_TEST_EXISTS)) { -- 1.8.1.2