diff options
Diffstat (limited to 'utils/filepath.c')
-rw-r--r-- | utils/filepath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/filepath.c b/utils/filepath.c index 7f11def10..d088777e5 100644 --- a/utils/filepath.c +++ b/utils/filepath.c @@ -221,7 +221,7 @@ expand_path(const char *path, int pathlen) memcpy(exp, path, pathlen); exp[pathlen] = 0; - explen = strlen(exp); + explen = pathlen; while (exp[cloop] != 0) { if ((exp[cloop] == '$') && |