summaryrefslogtreecommitdiff
path: root/src/main/ProcessCommandLine.c
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-02-11 11:38:56 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-02-11 11:38:56 +0000
commit3e5d44b3eed1d82ec2c193f75a495313df060d7b (patch)
tree661555619ff314cf60190b103396676890977add /src/main/ProcessCommandLine.c
parentc6e0da3f8ec625f05e3b844cc28eb3e41af53534 (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.c2
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;