summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.c b/src/modules.c
index 5843168e7..a02593119 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -2840,7 +2840,7 @@ void ModuleRunTimeDirCleanUp(void)
alog("debug: Unable to set Current working directory");
}
}
- snprintf(szDir, sizeof(szDir), "%s\\%s\\*", buffer, dirname);
+ snprintf(szDir, sizeof(szDir), "%s\\%s\\*", buffer, dirbuf);
hList = FindFirstFile(szDir, &FileData);
if (hList != INVALID_HANDLE_VALUE) {