mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
change 'long long' tom int64_t'; change variable buf to new delete;
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@291 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -304,7 +304,14 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
||||
neutrino_msg_data_t data;
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
|
||||
char oldval[size+1], dispval[size+1];
|
||||
char *oldval = new char[size+1];
|
||||
if(oldval == NULL)
|
||||
return res;
|
||||
char *dispval = new char[size+1];
|
||||
if(dispval == NULL){
|
||||
delete[] oldval;
|
||||
return res;
|
||||
}
|
||||
oldval[size] = 0;
|
||||
dispval[size] = 0;
|
||||
|
||||
@@ -317,7 +324,7 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
||||
|
||||
paint();
|
||||
|
||||
unsigned long long timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
||||
::TIMING_MENU]);
|
||||
|
||||
bool loop=true;
|
||||
@@ -446,7 +453,8 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
||||
{
|
||||
observ->changeNotify(name, value);
|
||||
}
|
||||
|
||||
delete[] oldval;
|
||||
delete[] oldval;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user