In params.h and params.cpp the freezeout path sSurface and the output directory sSpectraDir are both stored as C style char strings with a fixed number of characters. This may lead to buffer overflow.
It is safer to swich to the more C++ style std::string class for both paths. Then the calls in params.cpp void readRarams(char* filename) need to be adjusted accordingly to something like:
In
params.h
andparams.cpp
the freezeout pathsSurface
and the output directorysSpectraDir
are both stored as C style char strings with a fixed number of characters. This may lead to buffer overflow.It is safer to swich to the more C++ style
std::string
class for both paths. Then the calls in params.cppvoid readRarams(char* filename)
need to be adjusted accordingly to something like: