diff options
author | Tim Potter <tpot@samba.org> | 2001-05-11 07:13:13 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-05-11 07:13:13 +0000 |
commit | 324cd98913fef80016326e907c5130d71d88495d (patch) | |
tree | 59f1048cb46dd673f071c64632d715d367fb0ce8 | |
parent | 862fe3b7ede1ff2214e9129e10820d7fa67681bc (diff) | |
download | samba-324cd98913fef80016326e907c5130d71d88495d.tar.gz samba-324cd98913fef80016326e907c5130d71d88495d.tar.xz samba-324cd98913fef80016326e907c5130d71d88495d.zip |
Use talloc_strdup() instead of strdup().
(This used to be commit 3b4b5b3c61bb1fe1db15306219f24036bf342e2d)
-rw-r--r-- | source3/libsmb/cli_samr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cli_samr.c b/source3/libsmb/cli_samr.c index 94c2b6ae92a..538574f4377 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]; } |