From: Alexander Schmidt Date: Fri, 5 Dec 2014 14:31:34 +0000 (+0100) Subject: ... X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/commitdiff_plain/c819c7a5996c18a6b1c5501c1984245840ddc8ca ... --- diff --git a/o815/sim.cpp b/o815/sim.cpp index 70fe482..ec47339 100644 --- a/o815/sim.cpp +++ b/o815/sim.cpp @@ -11,7 +11,7 @@ o815::sim::sim(o815 *_O815, const int& _confmemSize) { hypercache::initC(O815->programid, O815->comargs.nequi, O815->comargs.nskip, O815->comargs.confcache.first, &confMem, _confmemSize, O815->comargs.confcache.second, log); nequi = O815->comargs.nequi; nskip = O815->comargs.nskip; - confmemSize = confmemSize; + confmemSize = _confmemSize; startConfiguration = NULL; @@ -22,7 +22,7 @@ o815::sim::sim(o815 *_O815, const int& _confmemSize) { dataReader.openFile(O815->comargs.startconfig); if ( dataReader.fisopen() ) { - startConfiguration = new char[confmemSize]; + startConfiguration = (char*)malloc(confmemSize); if ( dataReader.readFullBlock(startConfiguration) < 0 ) { *log << "SIM: Error while reading config from " << O815->comargs.startconfig << endl;