From 4d9b1e98f4f3cd7387491ba1cc883230302a9022 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 25 Jan 2019 22:44:17 +0800 Subject: Fixed a crash caused by improper preset probing. Further ensure CC#8 is initialized correctly. Minor string table update. --- qmidiplayer-desktop/qmpchannelswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qmidiplayer-desktop/qmpchannelswindow.cpp') diff --git a/qmidiplayer-desktop/qmpchannelswindow.cpp b/qmidiplayer-desktop/qmpchannelswindow.cpp index c154383..87eae10 100644 --- a/qmidiplayer-desktop/qmpchannelswindow.cpp +++ b/qmidiplayer-desktop/qmpchannelswindow.cpp @@ -148,7 +148,7 @@ void qmpChannelsWindow::channelWindowsUpdate() } for(int i=0;i<16;++i) { - char data[128],nm[25]; + char data[128],nm[256]; int b,p; qmpMainWindow::getInstance()->getPlayer()->getChannelPreset(i,&b,&p,nm); sprintf(data,"%03d:%03d %s",b,p,nm); -- cgit v1.2.3