summaryrefslogtreecommitdiff
path: root/muse2/synti/fluid
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/synti/fluid')
-rw-r--r--muse2/synti/fluid/fluidgui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/muse2/synti/fluid/fluidgui.cpp b/muse2/synti/fluid/fluidgui.cpp
index ec1c77b7..c9477b6b 100644
--- a/muse2/synti/fluid/fluidgui.cpp
+++ b/muse2/synti/fluid/fluidgui.cpp
@@ -79,7 +79,7 @@ void FLUIDGui::loadFont()
}
QByteArray ba = pathEntry->text().toLatin1();
const char* path = ba.constData();
- int len = strlen(path) + 1 + 3;
+ int len = ba.length() + 1 + 3;
unsigned char buffer[len];
int k = 0;
buffer[k++] = MUSE_SYNTH_SYSEX_MFG_ID;