diff options
Diffstat (limited to 'sys/sun4v/sun4v/machdep.c')
-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); } |