is ut_user[] in struct utmpx NUL terminated?
Ed Schouten
ed at nuxi.nl
Mon May 16 18:10:27 UTC 2016
Hi Don,
2016-05-16 1:07 GMT+02:00 Don Lewis <truckman at freebsd.org>:
> There is a lot of code that expects ut_user[] to be NUL terminated.
Our implementation of utmpx should be pretty friendly to use:
- You can call pututxline() with strings that are not null terminated.
- The getutx*() functions return entries in which all strings are null
terminated.
Keep in mind that ut_id is not a string, but a binary identifier,
meaning it is not null terminated.
Best regards,
--
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
More information about the freebsd-arch
mailing list