diff options
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c index 7bb69ca..3acba9f 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -95,6 +95,13 @@ int IOUtil_Startup (void) /* advertise the parameter file */ parfile[0] = 0; + + /* TODO: check the returned size; the function silently truncates + * the filename if it doesn't fit in the buffer; I can't think of a + * situation where this is useful. Even better, modify + * CCTK_ParameterFilename to allocate memory for the string, like + * many other Cactus functions do. */ + CCTK_ParameterFilename (sizeof (parfile), parfile); advertised_file.slice = ""; advertised_file.thorn = CCTK_THORNSTRING; |