From 0e4a60572955e5a9f8beb237b7dcb086e6d07847 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 24 Oct 2013 13:35:58 +0100 Subject: Remove unnecessary strlen. --- utils/filepath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] == '$') && -- cgit v1.2.3