summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_env.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-17 11:00:33 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-17 11:00:33 -0400
commit76b28e7ff22a5829da275e29e26faac404a107ae (patch)
tree5857a72c1efae57e7f6d63f31762fefcce5c9b9a /gtk2_ardour/bundle_env.h
parentdff83c77cf1e0aa397cafbf7bca705eb3d1800e5 (diff)
fix novice-level mistake that causes localedir to point to random, reusable (typically stack) memory
Diffstat (limited to 'gtk2_ardour/bundle_env.h')
-rw-r--r--gtk2_ardour/bundle_env.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/bundle_env.h b/gtk2_ardour/bundle_env.h
index 3a2ca4c54d..95a2696231 100644
--- a/gtk2_ardour/bundle_env.h
+++ b/gtk2_ardour/bundle_env.h
@@ -20,11 +20,13 @@
#ifndef __gtk2_ardour_bundle_env_h__
#define __gtk2_ardour_bundle_env_h__
+#include <string>
+
/** This function must do whatever is necessary to create the right runtime
* environment for the GTK2 version of ardour, on a per-platform basis.
*/
-void fixup_bundle_environment (int, char* [], const char** localedir);
+void fixup_bundle_environment (int, char* [], std::string & localedir);
/** Load any fonts required by the GTK2 version of ardour, on a per-platform
* basis.