[FREELDR] Don't call twice strlen() implicitly (in the min() macro).

This commit is contained in:
Hermès Bélusca-Maïto 2019-08-07 18:33:53 +02:00
parent 2811d2f990
commit 5b326e74cd
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -248,7 +248,8 @@ LinuxParseIniSection(
if (LinuxCommandLine)
{
RemoveQuotes(LinuxCommandLine);
LinuxCommandLineSize = min(strlen(LinuxCommandLine) + 1, 260);
LinuxCommandLineSize = (ULONG)strlen(LinuxCommandLine) + 1;
LinuxCommandLineSize = min(LinuxCommandLineSize, 260);
}
return TRUE;