diff options
author | mdf <mdf@FreeBSD.org> | 2011-03-11 18:56:55 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-03-11 18:56:55 +0000 |
commit | f225a1fc1ca8702af4bc8e98570c53eccf2bd9e1 (patch) | |
tree | dfcde8d54091665bcd08803cdffe7dddc0d81de4 /sys/sun4v | |
parent | 48d19c106deabea6d3ed85269a7c7d9479cc36b7 (diff) | |
download | FreeBSD-src-f225a1fc1ca8702af4bc8e98570c53eccf2bd9e1.zip FreeBSD-src-f225a1fc1ca8702af4bc8e98570c53eccf2bd9e1.tar.gz |
Mostly revert r219468, as I had misremembered the C standard regarding
the size of an extern array.
Keep one change from strncpy to strlcpy.
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/sun4v/machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sun4v/sun4v/machdep.c b/sys/sun4v/sun4v/machdep.c index 8016667..9475933 100644 --- a/sys/sun4v/sun4v/machdep.c +++ b/sys/sun4v/sun4v/machdep.c @@ -425,7 +425,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) env = getenv("kernelname"); if (env != NULL) { - strlcpy(kernelname, env, MAXPATHLEN); + strlcpy(kernelname, env, sizeof(kernelname)); freeenv(env); } |