diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-02-11 11:38:56 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-02-11 11:38:56 +0000 |
commit | 3e5d44b3eed1d82ec2c193f75a495313df060d7b (patch) | |
tree | 661555619ff314cf60190b103396676890977add /src/main/ProcessCommandLine.c | |
parent | c6e0da3f8ec625f05e3b844cc28eb3e41af53534 (diff) |
Fix to CCTK_ParameterFilename, and freeing some memory I'd missed when
the $PARAMETER_FILE directive is used.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2015 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ProcessCommandLine.c')
-rw-r--r-- | src/main/ProcessCommandLine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/ProcessCommandLine.c b/src/main/ProcessCommandLine.c index a4fa9929..804a1d57 100644 --- a/src/main/ProcessCommandLine.c +++ b/src/main/ProcessCommandLine.c @@ -253,7 +253,7 @@ int CCTK_ParameterFilename(int len, char *filename) } else { - strncpy(filename,parameter_file_name,len-1); + strncpy(filename,parameter_file_name,strlen(parameter_file_name)); } retval = strlen(filename); retval=retval > len ? 0 : retval; |