]> git.street.me.uk Git - andy/viking.git/blobdiff - src/babel.c
Ensure string value is copied.
[andy/viking.git] / src / babel.c
index 29ce22fcc16c7031973d6d4bc97fb1cd703a27b8..ea86ae4f8a1c04ebc3d7d3d20782bc76c976412e 100644 (file)
@@ -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