From 7058d14133aa43cd8b9468322ac21078280d748c Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Sat, 29 Apr 2017 16:31:00 +0100 Subject: [PATCH] Ensure string value is copied. Otherwise wrong memory is freed at program shutdown. --- src/babel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel.c b/src/babel.c index 29ce22fc..ea86ae4f 100644 --- a/src/babel.c +++ b/src/babel.c @@ -672,7 +672,7 @@ void a_babel_post_init () g_critical( "gpsbabel not found in PATH" ); } else - gpsbabel_loc = (gchar*)gpsbabel; + gpsbabel_loc = g_strdup ( gpsbabel ); // Unlikely to package unbuffer on Windows so ATM don't even bother trying // Highly unlikely unbuffer is available on a Windows system otherwise -- 2.39.5