From 9a012df08ee829c1d40fc88ba12a0ea479f60be0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 14 Sep 2007 23:21:00 +0000 Subject: r25175: Change to talloc_asprintf_append_buffer(). Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4) --- source4/client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/client/client.c') diff --git a/source4/client/client.c b/source4/client/client.c index 6a4a9c1040..cd81f8c832 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -507,7 +507,7 @@ static void do_list_helper(struct clilist_file_info *f, const char *mask, void * p = strrchr_m(mask2,'\\'); if (!p) return; p[1] = 0; - mask2 = talloc_asprintf_append(mask2, "%s\\*", f->name); + mask2 = talloc_asprintf_append_buffer(mask2, "%s\\*", f->name); add_to_do_list_queue(mask2); } return; @@ -861,7 +861,7 @@ static void do_mget(struct smbclient_context *ctx, struct clilist_file_info *fin /* handle directories */ saved_curdir = talloc_strdup(NULL, ctx->remote_cur_dir); - ctx->remote_cur_dir = talloc_asprintf_append(NULL, "%s\\", finfo->name); + ctx->remote_cur_dir = talloc_asprintf_append_buffer(NULL, "%s\\", finfo->name); string_replace(discard_const_p(char, finfo->name), '\\', '/'); if (ctx->lowercase) { -- cgit