fix loading of long filenames

This commit is contained in:
Christopher Lackner 2019-08-22 15:00:42 +02:00
parent 0e601b3db4
commit 287256a626

View File

@ -1301,8 +1301,8 @@ namespace netgen
static char buf[10]; static char buf[10];
if (parameters.StringFlagDefined (argv[1])) if (parameters.StringFlagDefined (argv[1]))
Tcl_SetResult (interp, Tcl_SetResult (interp,
(char*)parameters.GetStringFlag (argv[1], NULL).c_str(), TCL_STATIC); const_cast<char*>(parameters.GetStringFlag (argv[1], NULL).c_str()), TCL_VOLATILE);
else if (parameters.NumFlagDefined (argv[1])) else if (parameters.NumFlagDefined (argv[1]))
{ {
sprintf (buf, "%lf", parameters.GetNumFlag (argv[1], 0)); sprintf (buf, "%lf", parameters.GetNumFlag (argv[1], 0));