aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmppresetselect.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-01-25 22:44:17 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-01-25 22:44:17 +0800
commit4d9b1e98f4f3cd7387491ba1cc883230302a9022 (patch)
tree7147e208bdab4356e317cb46ea4958de23f6800f /qmidiplayer-desktop/qmppresetselect.cpp
parent003c637ef40e1826b7c829afbfba82ea028e21a5 (diff)
downloadQMidiPlayer-4d9b1e98f4f3cd7387491ba1cc883230302a9022.tar.xz
Fixed a crash caused by improper preset probing.
Further ensure CC#8 is initialized correctly. Minor string table update.
Diffstat (limited to 'qmidiplayer-desktop/qmppresetselect.cpp')
-rw-r--r--qmidiplayer-desktop/qmppresetselect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmppresetselect.cpp b/qmidiplayer-desktop/qmppresetselect.cpp
index 57dbe7f..87071f4 100644
--- a/qmidiplayer-desktop/qmppresetselect.cpp
+++ b/qmidiplayer-desktop/qmppresetselect.cpp
@@ -40,7 +40,7 @@ void qmpPresetSelector::setupWindow(int chid)
{
CMidiPlayer *plyr=qmpMainWindow::getInstance()->getPlayer();
if(!plyr->fluid()->getSFCount())return;
- ch=chid;int b=0,p=0,r;char name[64];
+ ch=chid;int b=0,p=0,r;char name[256];
sprintf(name,"Preset Selection - Channel #%d",ch+1);
setWindowTitle(name);
plyr->getChannelPreset(chid,&b,&p,name);