mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 01:41:12 +02:00
audioplayer: fix buffer overflow
Origin commit data
------------------
Commit: 96006a04f6
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-09-23 (Sat, 23 Sep 2017)
This commit is contained in:
committed by
Jacek Jendrzej
parent
abf326730e
commit
74155189b4
@@ -801,7 +801,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;
|
||||||
|
Reference in New Issue
Block a user