Commit a7d932af authored by Dan Smith's avatar Dan Smith Committed by Linus Torvalds

utsname.h: make new_utsname fields use the proper length constant

The members of the new_utsname structure are defined with magic numbers
that *should* correspond to the constant __NEW_UTS_LEN+1.  Everywhere
else, code assumes this and uses the constant, so this patch makes the
structure match.

Originally suggested by Serge here:

https://lists.linux-foundation.org/pipermail/containers/2009-March/016258.htmlSigned-off-by: default avatarDan Smith <danms@us.ibm.com>
Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b08cd961
...@@ -22,12 +22,12 @@ struct old_utsname { ...@@ -22,12 +22,12 @@ struct old_utsname {
}; };
struct new_utsname { struct new_utsname {
char sysname[65]; char sysname[__NEW_UTS_LEN + 1];
char nodename[65]; char nodename[__NEW_UTS_LEN + 1];
char release[65]; char release[__NEW_UTS_LEN + 1];
char version[65]; char version[__NEW_UTS_LEN + 1];
char machine[65]; char machine[__NEW_UTS_LEN + 1];
char domainname[65]; char domainname[__NEW_UTS_LEN + 1];
}; };
#ifdef __KERNEL__ #ifdef __KERNEL__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment