summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-12-03 16:12:27 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-12-03 16:12:27 +0000
commit011376308f954457a26cc632ad96816a76d25b00 (patch)
tree8f9d530e63e21e0286cad851a18efd4acdd6bd28 /sys/compat/linux/linux_misc.c
parent47af9353ea3636e002f5a098ad797db49bb62e58 (diff)
Notes
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 96fc6dc2b6a2..605b6ed02c50 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -688,15 +688,16 @@ int
linux_newuname(struct thread *td, struct linux_newuname_args *args)
{
struct l_new_utsname utsname;
- char *osrelease, *osname;
+ char osname[LINUX_MAX_UTSNAME];
+ char osrelease[LINUX_MAX_UTSNAME];
#ifdef DEBUG
if (ldebug(newuname))
printf(ARGS(newuname, "*"));
#endif
- osname = linux_get_osname(td->td_proc);
- osrelease = linux_get_osrelease(td->td_proc);
+ linux_get_osname(td->td_proc, osname);
+ linux_get_osrelease(td->td_proc, osrelease);
bzero(&utsname, sizeof(utsname));
strncpy(utsname.sysname, osname, LINUX_MAX_UTSNAME-1);