white space

This commit is contained in:
Christopher Faylor 2002-07-01 02:36:04 +00:00
parent 8a2ce995f1
commit fad1c3a8e0
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
argument.
(fhandler_process::fill_filebuf): Use p pointer rather than argument.
2002-06-29 Pierre Humblet <pierre.humblet@ieee.org>
2002-06-29 Pierre Humblet <pierre.humblet@ieee.org>
* security.cc (extract_nt_dom_user): Check for all buffer overflows.
Call LookupAccountSid after trying to get domain & user from passwd.

View File

@ -75,7 +75,7 @@ extract_nt_dom_user (const struct passwd *pw, char *domain, char *user)
else if (u - d <= INTERNET_MAX_HOST_NAME_LENGTH + 2)
strlcpy(domain, d + 2, u - d - 1);
if (c == NULL)
c = u + UNLEN + 1;
c = u + UNLEN + 1;
if (c - u <= UNLEN + 1)
strlcpy(user, u + 1, c - u);
}