summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 5ffce583db4..e0cae91a0da 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1522,10 +1522,7 @@ static char *xx_path(const char *name, const char *rootpath)
"Error was %s\n", fname, name, strerror(errno)));
}
- return talloc_asprintf(talloc_tos(),
- "%s/%s",
- fname,
- name);
+ return talloc_asprintf_append(fname, "/%s", name);
}
/**