From 31124420b7aa712adb478053894a14efde0a7c97 Mon Sep 17 00:00:00 2001 From: Richard Sharpe Date: Tue, 5 Nov 2002 20:40:55 +0000 Subject: A small fix by Andy Thomas. Now that incrementing the Auth index has been pushed into a macro, things do not work so well. Move the increment out of the array index. (This used to be commit 39136827d135c91e42ec2b36f420262b1b18093c) --- source3/utils/profiles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c index 70ac8ffcc0..e7ffab9101 100644 --- a/source3/utils/profiles.c +++ b/source3/utils/profiles.c @@ -445,7 +445,8 @@ int get_sid(DOM_SID *sid, char *sid_str) return 1; } - SIVAL(&sid->sub_auths[i++], 0, auth); + SIVAL(&sid->sub_auths[i], 0, auth); + i++; lstr = strchr(lstr + 1, '-'); } -- cgit