From 8f75f61693d744833d828f729c909afac08ce559 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Sun, 20 Jan 2013 12:51:53 +0000 Subject: [PATCH] [QA] Prefer g_strdup() over strdup(). Also gives clean cppcheck 1.57 run. --- src/vikwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vikwindow.c b/src/vikwindow.c index 2476d409..0ca52b09 100644 --- a/src/vikwindow.c +++ b/src/vikwindow.c @@ -2372,7 +2372,7 @@ static gboolean save_file_as ( GtkAction *a, VikWindow *vw ) gtk_window_set_destroy_with_parent ( GTK_WINDOW(vw->save_dia), TRUE ); } // Auto append / replace extension with '.vik' to the suggested file name as it's going to be a Viking File - gchar* auto_save_name = strdup ( window_get_filename ( vw ) ); + gchar* auto_save_name = g_strdup ( window_get_filename ( vw ) ); if ( ! check_file_ext ( auto_save_name, ".vik" ) ) auto_save_name = g_strconcat ( auto_save_name, ".vik", NULL ); -- 2.39.5