summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-06 14:35:13 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-06 17:18:14 +0200
commit8a2290667ca4c530321d366d3dd09f4757e9ac1d (patch)
tree576cd215054288d77b6b76f234de059093a39ef8 /source3/torture
parenta1df729f7b498c770a013ddabb38d0b2e8608b67 (diff)
downloadsamba-8a2290667ca4c530321d366d3dd09f4757e9ac1d.tar.gz
samba-8a2290667ca4c530321d366d3dd09f4757e9ac1d.tar.bz2
samba-8a2290667ca4c530321d366d3dd09f4757e9ac1d.zip
s3:libsmb: use clistr_pull_talloc() in cli_qfilename()
metze
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 4c9ef97dfa..7e2a5e7beb 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -3096,7 +3096,7 @@ static bool run_trans2test(int dummy)
const char *fname = "\\trans2.tst";
const char *dname = "\\trans2";
const char *fname2 = "\\trans2\\trans2.tst";
- char pname[1024];
+ char *pname;
bool correct = True;
NTSTATUS status;
uint32_t fs_attr;
@@ -3123,7 +3123,7 @@ static bool run_trans2test(int dummy)
correct = False;
}
- status = cli_qfilename(cli, fnum, pname, sizeof(pname));
+ status = cli_qfilename(cli, fnum, talloc_tos(), &pname);
if (!NT_STATUS_IS_OK(status)) {
printf("ERROR: qfilename failed (%s)\n", nt_errstr(status));
correct = False;