Ben Gras f96645a4eb Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be
copied into was the same size as the source string - it will keep on
filling with zeroes forever. This was a signed/unsigned bug, fixed by
making the kstrncpy argument ssize_t instead of size_t. This bug was
triggered by Chris Young <teddga@earthlink.net>, by dazzling coincedence -
changing OS_VERSION into something with one more character (exactly the
same size as the buffer in the kinfo struct).

Also noticed that the kstrncpy() call didn't null-terminate the strings
if necessary, also fixed.
2005-07-13 14:46:11 +00:00
..
2005-06-30 15:55:19 +00:00
2005-06-30 15:55:19 +00:00
2005-06-07 12:34:25 +00:00
2005-06-30 15:55:19 +00:00
2005-04-21 14:53:53 +00:00
2005-04-29 15:36:43 +00:00
2005-04-21 14:53:53 +00:00
2005-06-30 15:55:19 +00:00
2005-04-29 15:36:43 +00:00
2005-06-30 15:55:19 +00:00
2005-04-21 14:53:53 +00:00
2005-04-29 15:36:43 +00:00
2005-04-21 14:53:53 +00:00
2005-06-30 15:55:19 +00:00