audioplayer: fix buffer overflow

Origin commit data
------------------
Branch: ni/coolstream
Commit: df74ee2d18
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-09-25 (Mon, 25 Sep 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-09-25 11:25:51 +02:00
committed by vanhofen
parent 60be1cbe05
commit 69132416f2

View File

@@ -889,7 +889,7 @@ int CAudioPlayerGui::show()
smsKey = m_SMSKeyInput.handleMsg(msg); smsKey = m_SMSKeyInput.handleMsg(msg);
//printf(" new key: %c", smsKey); //printf(" new key: %c", smsKey);
/* show a hint box with current char (too slow at the moment?)*/ /* show a hint box with current char (too slow at the moment?)*/
char selectedKey[1]; char selectedKey[2];
sprintf(selectedKey,"%c",smsKey); sprintf(selectedKey,"%c",smsKey);
int x1=(g_settings.screen_EndX- g_settings.screen_StartX)/2 + g_settings.screen_StartX-50; int x1=(g_settings.screen_EndX- g_settings.screen_StartX)/2 + g_settings.screen_StartX-50;
int y1=(g_settings.screen_EndY- g_settings.screen_StartY)/2 + g_settings.screen_StartY; int y1=(g_settings.screen_EndY- g_settings.screen_StartY)/2 + g_settings.screen_StartY;