summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-11 07:13:13 +0000
committerTim Potter <tpot@samba.org>2001-05-11 07:13:13 +0000
commit324cd98913fef80016326e907c5130d71d88495d (patch)
tree59f1048cb46dd673f071c64632d715d367fb0ce8 /source3
parent862fe3b7ede1ff2214e9129e10820d7fa67681bc (diff)
downloadsamba-324cd98913fef80016326e907c5130d71d88495d.tar.gz
samba-324cd98913fef80016326e907c5130d71d88495d.tar.bz2
samba-324cd98913fef80016326e907c5130d71d88495d.zip
Use talloc_strdup() instead of strdup().
(This used to be commit 3b4b5b3c61bb1fe1db15306219f24036bf342e2d)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cli_samr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cli_samr.c b/source3/libsmb/cli_samr.c
index 94c2b6ae92..538574f437 100644
--- a/source3/libsmb/cli_samr.c
+++ b/source3/libsmb/cli_samr.c
@@ -851,7 +851,7 @@ uint32 cli_samr_lookup_rids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
fstring tmp;
unistr2_to_ascii(tmp, &r.uni_name[i], sizeof(tmp) - 1);
- (*names)[i] = strdup(tmp);
+ (*names)[i] = talloc_strdup(mem_ctx, tmp);
(*name_types)[i] = r.type[i];
}