summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 72f5fd3cd1..1886877ebe 100644
--- a/dir.c
+++ b/dir.c
@@ -796,7 +796,7 @@ glob_helper(path, sub, flags, func, arg)
buf = ALLOC_N(char, strlen(base)+NAMLEN(dp)+2);
sprintf(buf, "%s%s%s", base, (BASE) ? "/" : "", dp->d_name);
if (!m) {
- status = glob_call_func(func, path, arg);
+ status = glob_call_func(func, buf, arg);
free(buf);
if (status) goto finalize;
continue;