aboutsummaryrefslogtreecommitdiff
path: root/src/filehandler.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/filehandler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filehandler.c b/src/filehandler.c
index fb1cedb..cc3bbb9 100644
--- a/src/filehandler.c
+++ b/src/filehandler.c
@@ -47,7 +47,7 @@ enumfilesindir(char *path)
while ((dir = readdir(d)) != NULL)
if (dir->d_type == DT_REG)
- list_add(l, wrap_ptr(strdup(dir->d_name)));
+ list_wrap_and_add(l, strdup(dir->d_name));
closedir(d);
return l;