[FREELDR] Don't call twice strlen() implicitly (in the min() macro).
[reactos.git] / boot / freeldr / freeldr / linuxboot.c
index 6ddc8b9..b1378df 100644 (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;