summaryrefslogtreecommitdiff
path: root/src/util/ParseFile.c
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-02-06 12:38:44 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-02-06 12:38:44 +0000
commitc30e2c7dd13148ffd84a130aac5216bbf66a69c4 (patch)
treeb11f5266329a25faa984050158d1208cf8fe3b98 /src/util/ParseFile.c
parent9f4ab715fef0c977397ab36b2f05ab15e31d6131 (diff)
When stripping the directory part off the parameter file name, do not
forget to also strip the "/" that separates the directory name and the file name. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3571 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/ParseFile.c')
-rw-r--r--src/util/ParseFile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/ParseFile.c b/src/util/ParseFile.c
index 9606075f..395cc194 100644
--- a/src/util/ParseFile.c
+++ b/src/util/ParseFile.c
@@ -298,6 +298,10 @@ int ParseFile(FILE *ifp,
{
parfile = path;
}
+ else
+ {
+ parfile++;
+ }
/* skip the parameter file extension */
if (strcmp (parfile + strlen (parfile) - 4, ".par") == 0)
{