aboutsummaryrefslogtreecommitdiff
path: root/lib/base
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-22 22:04:04 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-02-22 22:04:04 +0000
commit73e10b7fbfb0f7beb6dfe8c8a5637d5dd9a049bc (patch)
treec959c4222f51f373617fc34cf8bcbba122354968 /lib/base
parent1845d68e4245c24fd3097e36967463f9ecec936b (diff)
downloadenigma2-73e10b7fbfb0f7beb6dfe8c8a5637d5dd9a049bc.tar.gz
enigma2-73e10b7fbfb0f7beb6dfe8c8a5637d5dd9a049bc.zip
make glibc memchecker happy :)
Diffstat (limited to 'lib/base')
-rw-r--r--lib/base/console.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base/console.cpp b/lib/base/console.cpp
index f49c7c4c..5165283a 100644
--- a/lib/base/console.cpp
+++ b/lib/base/console.cpp
@@ -154,6 +154,7 @@ int eConsoleAppContainer::execute( const std::string &cmd )
tmp.erase(tmp.length()-1, 1);
bracketClosed=false;
}
+// eDebug("new argv[%d] %d bytes", tmp.length()+1);
argv[cnt] = new char[ tmp.length()+1 ];
// eDebug("idx=%d, arg = %s", idx, tmp.c_str() );
strcpy( argv[cnt++], tmp.c_str() );
@@ -171,7 +172,8 @@ int eConsoleAppContainer::execute( const std::string &cmd )
cmds.erase(cmds.length()-1, 1);
}
// store the last arg
- argv[cnt] = new char[ cmds.length() ];
+// eDebug("new argv[%d] %d bytes", cmds.length());
+ argv[cnt] = new char[ cmds.length()+1 ];
strcpy( argv[cnt], cmds.c_str() );
}
else
@@ -349,3 +351,4 @@ void eConsoleAppContainer::readyWrite(int what)
if ( !outbuf.size() )
out->stop();
}
+ \ No newline at end of file