git: kernel - More fixes to libc's uname
dillon at crater.dragonflybsd.org
Wed Mar 31 14:36:44 PDT 2021
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Mar 31 14:34:50 2021 -0700
kernel - More fixes to libc's uname
* Remove no no-longer-used buf (and fix syntax error during
* Do not parse garbage data in buffers in case the sysctls fail.
This would not have been fatal anyway since we always ensure
that the buffers are zero-terminated, but it wasn't clean either.
Clean it up.
* Use the proper name->arrayname for a pointer to the array instead
of &name->arrayname. We could also use &name->arrayname but
just stick with the first method.
Summary of changes:
lib/libc/gen/uname.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
DragonFly BSD source repository
More information about the Commits