summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-09-14 23:21:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:06:46 -0500
commit9a012df08ee829c1d40fc88ba12a0ea479f60be0 (patch)
tree98fc38abc69111d06d29b0f7c57a5f3372bdcbed /source4/client
parent6f37a17d4a66c67de974cec14ebdf627114a397e (diff)
downloadsamba-9a012df08ee829c1d40fc88ba12a0ea479f60be0.tar.gz
samba-9a012df08ee829c1d40fc88ba12a0ea479f60be0.tar.bz2
samba-9a012df08ee829c1d40fc88ba12a0ea479f60be0.zip
r25175: Change to talloc_asprintf_append_buffer().
Jeremy. (This used to be commit 0844dbf597191b3e4d35a696695b229e986daec4)
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/client.c4
1 files changed, 2 insertions, 2 deletions
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) {