Skip to content

Commit 29521a4

Browse files
Johan Hedbergjhedberg
authored andcommitted
posix: Fix release name length in struct utsname
The release name length forgot to take into account the optional EXTRAVERSION string (e.g. rc1). Signed-off-by: Johan Hedberg <[email protected]>
1 parent ed7d56f commit 29521a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/posix/sys/utsname.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313
struct utsname {
1414
char sysname[sizeof("Zephyr")];
1515
char nodename[CONFIG_POSIX_UNAME_NODENAME_LEN + 1];
16-
char release[sizeof("99.99.99")];
16+
char release[sizeof("99.99.99-rc1")];
1717
char version[CONFIG_POSIX_UNAME_VERSION_LEN + 1];
1818
char machine[sizeof(CONFIG_ARCH)];
1919
};

0 commit comments

Comments
 (0)