The precision for a string argument in a call to warnx() needs to be cast
to an int to remove the warning from using a size_t variable on 64-bit platforms. Submitted by: Xin LI <delphij@FreeBSD.org> Approved by: wes Approved by: re (kensmith)
This commit is contained in:
parent
a5423ea313
commit
8e5b20fa9c
@ -356,7 +356,8 @@ __build_env(void)
|
||||
activeNdx = envVarsTotal - 1;
|
||||
if (__findenv(envVars[envNdx].name, nameLen, &activeNdx,
|
||||
false) == NULL) {
|
||||
warnx(CorruptEnvFindMsg, nameLen, envVars[envNdx].name);
|
||||
warnx(CorruptEnvFindMsg, (int)nameLen,
|
||||
envVars[envNdx].name);
|
||||
errno = EFAULT;
|
||||
goto Failure;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user