From 5901855d778adca7c9e28922f304e190e62cf402 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Tue, 18 Nov 2008 16:31:34 +0100 Subject: [PATCH] libsmb: Fix up pointer passed to cli_send_trans in cli_link_internal Seems like this one fell victim to the pstring removal. The other callers seem to be fine, even though removing the casts would make the code less confusing. (cherry picked from commit f9ecc1971b78b7ffc2d5c1a47ff7265916003bfd) --- source/libsmb/clifile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c index 12b10ba0a0d..26cf6b09886 100644 --- a/source/libsmb/clifile.c +++ b/source/libsmb/clifile.c @@ -66,7 +66,7 @@ static bool cli_link_internal(struct cli_state *cli, const char *oldname, const -1, 0, /* fid, flags */ &setup, 1, 0, /* setup, length, max */ param, param_len, 2, /* param, length, max */ - (char *)&data, data_len, cli->max_xmit /* data, length, max */ + data, data_len, cli->max_xmit /* data, length, max */ )) { SAFE_FREE(data); SAFE_FREE(param); -- 2.11.4.GIT