From 287256a6260ec8da846247b14ebe586091d07153 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 22 Aug 2019 15:00:42 +0200 Subject: [PATCH] fix loading of long filenames --- ng/ngpkg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index 102208c2..17a8d589 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -1301,8 +1301,8 @@ namespace netgen static char buf[10]; if (parameters.StringFlagDefined (argv[1])) - Tcl_SetResult (interp, - (char*)parameters.GetStringFlag (argv[1], NULL).c_str(), TCL_STATIC); + Tcl_SetResult (interp, + const_cast(parameters.GetStringFlag (argv[1], NULL).c_str()), TCL_VOLATILE); else if (parameters.NumFlagDefined (argv[1])) { sprintf (buf, "%lf", parameters.GetNumFlag (argv[1], 0));