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:
satbaby
2010-02-07 14:32:21 +00:00
parent 0e9897a200
commit 8f59cc96ec
43 changed files with 202 additions and 183 deletions

View File

@@ -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;
}