1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-07 20:23:50 +03:00

Remove next_token - all uses must now be next_token_talloc.

No more temptations to use static length strings.
Jeremy.
This commit is contained in:
Jeremy Allison
2007-12-07 17:32:32 -08:00
parent bca371bff8
commit ec003f3936
29 changed files with 563 additions and 406 deletions

View File

@@ -290,10 +290,10 @@ bool parse_usershare_acl(TALLOC_CTX *ctx, const char *acl_str, SEC_DESC **ppsd)
uint32 g_access;
uint32 s_access;
DOM_SID sid;
fstring sidstr;
char *sidstr;
uint8 type = SEC_ACE_TYPE_ACCESS_ALLOWED;
if (!next_token(&pacl, sidstr, ":", sizeof(sidstr))) {
if (!next_token_talloc(ctx, &pacl, &sidstr, ":")) {
DEBUG(0,("parse_usershare_acl: malformed usershare acl looking "
"for ':' in string '%s'\n", pacl));
return False;