summaryrefslogtreecommitdiff
path: root/muse2/synti/vam
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti/vam')
-rw-r--r--muse2/synti/vam/vamgui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/muse2/synti/vam/vamgui.cpp b/muse2/synti/vam/vamgui.cpp
index 1ed32994..10378229 100644
--- a/muse2/synti/vam/vamgui.cpp
+++ b/muse2/synti/vam/vamgui.cpp
@@ -445,7 +445,8 @@ void VAMGui::setPreset(Preset* preset)
putchar(0x7c); // mess
putchar(0x2); // vam
putchar(0x3); // setPreset
- const char* name = preset->name.toLatin1();
+ QByteArray ba = preset->name.toLatin1();
+ const char* name = ba.constData();
while (*name)
putchar(*name++ & 0x7f);
putchar(0);