summaryrefslogtreecommitdiffstats
path: root/source/libgpo/gpo_fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libgpo/gpo_fetch.c')
-rw-r--r--source/libgpo/gpo_fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libgpo/gpo_fetch.c b/source/libgpo/gpo_fetch.c
index 31c6132b987..6be986d5d90 100644
--- a/source/libgpo/gpo_fetch.c
+++ b/source/libgpo/gpo_fetch.c
@@ -102,7 +102,7 @@ static NTSTATUS gpo_prepare_local_store(TALLOC_CTX *mem_ctx,
while (next_token(&unix_path, tok, "/", sizeof(tok))) {
- current_dir = talloc_asprintf_append(current_dir, "/%s", tok);
+ current_dir = talloc_asprintf_append_buffer(current_dir, "/%s", tok);
NT_STATUS_HAVE_NO_MEMORY(current_dir);
if ((mkdir(current_dir, 0644)) < 0 && errno != EEXIST) {