diff --git a/Builds/MacOSX/Dexed.xcodeproj/project.xcworkspace/xcuserdata/asb2m10.xcuserdatad/UserInterfaceState.xcuserstate b/Builds/MacOSX/Dexed.xcodeproj/project.xcworkspace/xcuserdata/asb2m10.xcuserdatad/UserInterfaceState.xcuserstate index 9957ef1..c41b940 100644 Binary files a/Builds/MacOSX/Dexed.xcodeproj/project.xcworkspace/xcuserdata/asb2m10.xcuserdatad/UserInterfaceState.xcuserstate and b/Builds/MacOSX/Dexed.xcodeproj/project.xcworkspace/xcuserdata/asb2m10.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Source/PluginData.cpp b/Source/PluginData.cpp index 8f29376..94ff5a2 100644 --- a/Source/PluginData.cpp +++ b/Source/PluginData.cpp @@ -107,18 +107,19 @@ void packProgram(uint8_t *dest, uint8_t *src, int idx, String name) { memcpy(bulk + 112, src + 137, 4); // lfo bulk[116] = (src[141]&0x01) | (((src[142]&0x07) << 1) | ((src[143]&0x07) << 4)); bulk[117] = src[144]; + int eos = 0; for(int i=0; i < 10; i++) { - char c = name[i]; + char c = (char) name[i]; if ( c == 0 ) eos = 1; if ( eos ) { - bulk[117+i] = ' '; + bulk[118+i] = ' '; continue; } c = c < 32 ? ' ' : c; c = c > 127 ? ' ' : c; - bulk[117+i] = c; + bulk[118+i] = c; } } diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index e09e71f..7c3416a 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -305,10 +305,10 @@ void DexedAudioProcessorEditor::storeProgram() { ComboBox *dest = dialog.getComboBoxComponent(String("Dest")); int programNum = dest->getSelectedItemIndex(); - String programName = name->getText(); + String programName(name->getText()); if ( programName.length() > 10 ) { int toStrip = programName.length() - 10; - programName.dropLastCharacters(toStrip); + programName = programName.dropLastCharacters(toStrip); } if ( externalFile == NULL ) {