[PATCH 07/10] sys/utsname.h: Increase buffer to avoid overflow

Joel Sherrill joel at rtems.org
Wed Jun 21 17:52:14 UTC 2017


---
 cpukit/libcsupport/include/sys/utsname.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cpukit/libcsupport/include/sys/utsname.h b/cpukit/libcsupport/include/sys/utsname.h
index 95dc2c1..ddeb0e9 100644
--- a/cpukit/libcsupport/include/sys/utsname.h
+++ b/cpukit/libcsupport/include/sys/utsname.h
@@ -39,11 +39,11 @@ extern "C" {
  */
 
 #ifdef _KERNEL
-#define SYS_NMLN        32              /* uname(2) for the FreeBSD 1.1 ABI. */
+#define SYS_NMLN        48              /* uname(2) for the FreeBSD 1.1 ABI. */
 #endif
 
 #ifndef SYS_NMLN
-#define SYS_NMLN        32		/* User can override. */
+#define SYS_NMLN        48		/* User can override. */
 #endif
 
 struct utsname {
-- 
1.8.3.1



More information about the devel mailing list