summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getenv.c
diff options
context:
space:
mode:
authorSean Farley <scf@FreeBSD.org>2007-09-22 02:30:44 +0000
committerSean Farley <scf@FreeBSD.org>2007-09-22 02:30:44 +0000
commit8e5b20fa9c48e70a31578d3272401b3e94b7f53d (patch)
treeb6303298a6a7544bb12b0524cd3d883e093fa26c /lib/libc/stdlib/getenv.c
parenta5423ea31315c7fda1456a427eea4cebc91ebbf2 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
-rw-r--r--lib/libc/stdlib/getenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/getenv.c b/lib/libc/stdlib/getenv.c
index 26de922b532a7..2b7757ed3374b 100644
--- a/lib/libc/stdlib/getenv.c
+++ b/lib/libc/stdlib/getenv.c
@@ -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;
}