summaryrefslogtreecommitdiffstats
path: root/common/menutree.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/menutree.c')
-rw-r--r--common/menutree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/menutree.c b/common/menutree.c
index 1505ec8541..eb14da0d01 100644
--- a/common/menutree.c
+++ b/common/menutree.c
@@ -98,7 +98,7 @@ int menutree(const char *path, int toplevel)
menu = menu_alloc();
- globpath = asprintf("%s/*", path);
+ globpath = basprintf("%s/*", path);
ret = glob(globpath, 0, NULL, &g);
free(globpath);
if (ret == GLOB_NOMATCH) {
@@ -149,7 +149,7 @@ int menutree(const char *path, int toplevel)
mt->me.type = MENU_ENTRY_NORMAL;
- mt->action = asprintf("%s/action", g.gl_pathv[i]);
+ mt->action = basprintf("%s/action", g.gl_pathv[i]);
ret = stat(mt->action, &s);
if (ret) {