diff --git a/sys/compat/linux/common/linux_oldolduname.c b/sys/compat/linux/common/linux_oldolduname.c index 5e7c279c1612..3d26e4803d39 100644 --- a/sys/compat/linux/common/linux_oldolduname.c +++ b/sys/compat/linux/common/linux_oldolduname.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_oldolduname.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */ +/* $NetBSD: linux_oldolduname.c,v 1.48 1998/10/01 18:58:28 perry Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -107,12 +107,14 @@ linux_sys_oldolduname(p, v, retval) /* This part taken from the the uname() in libc */ len = sizeof(luts.l_version); - for (cp = luts.l_version; len--; ++cp) - if (*cp == '\n' || *cp == '\t') + for (cp = luts.l_version; len--; ++cp) { + if (*cp == '\n' || *cp == '\t') { if (len > 1) *cp = ' '; else *cp = '\0'; + } + } return copyout(&luts, SCARG(uap, up), sizeof(luts)); } diff --git a/sys/compat/linux/multiarch/linux_oldolduname.c b/sys/compat/linux/multiarch/linux_oldolduname.c index 5e7c279c1612..3d26e4803d39 100644 --- a/sys/compat/linux/multiarch/linux_oldolduname.c +++ b/sys/compat/linux/multiarch/linux_oldolduname.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_oldolduname.c,v 1.47 1998/10/01 04:05:55 erh Exp $ */ +/* $NetBSD: linux_oldolduname.c,v 1.48 1998/10/01 18:58:28 perry Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -107,12 +107,14 @@ linux_sys_oldolduname(p, v, retval) /* This part taken from the the uname() in libc */ len = sizeof(luts.l_version); - for (cp = luts.l_version; len--; ++cp) - if (*cp == '\n' || *cp == '\t') + for (cp = luts.l_version; len--; ++cp) { + if (*cp == '\n' || *cp == '\t') { if (len > 1) *cp = ' '; else *cp = '\0'; + } + } return copyout(&luts, SCARG(uap, up), sizeof(luts)); }