Fix formatting in sec_auth.cc

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-01-21 18:27:05 +01:00
parent 3a720bf3f0
commit d44ec01ea1
1 changed files with 3 additions and 3 deletions

View File

@ -134,11 +134,11 @@ extract_nt_dom_user (const struct passwd *pw, PWCHAR domain, PWCHAR user)
{
c = strchrnul (d + 2, ',');
if ((u = strchrnul (d + 2, '\\')) >= c)
u = d + 1;
u = d + 1;
else if (u - d <= MAX_DOMAIN_NAME_LEN + 2)
sys_mbstowcs (domain, MAX_DOMAIN_NAME_LEN + 1, d + 2, u - d - 1);
sys_mbstowcs (domain, MAX_DOMAIN_NAME_LEN + 1, d + 2, u - d - 1);
if (c - u <= UNLEN + 1)
sys_mbstowcs (user, UNLEN + 1, u + 1, c - u);
sys_mbstowcs (user, UNLEN + 1, u + 1, c - u);
}
}