linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Are ut_user and ut_host in struct utmp NUL-terminated?
@ 2018-08-13 12:10 Florian Weimer
  2018-08-13 12:44 ` Andreas Schwab
  2018-08-21  8:47 ` Michael Kerrisk (man-pages)
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Weimer @ 2018-08-13 12:10 UTC (permalink / raw)
  To: GNU C Library, linux-man@vger.kernel.org

Can ut_user be exactly UT_NAMESIZE bytes long?  Or is it necessary to 
set aside a byte with the NUL terminator?

I'm not sure what POSIX says about struct utmpx.  It never says “string” 
in the context of ut_user, so I don't think it clarifies this matter.

Thanks,
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-21 11:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-13 12:10 Are ut_user and ut_host in struct utmp NUL-terminated? Florian Weimer
2018-08-13 12:44 ` Andreas Schwab
2018-08-21  8:47 ` Michael Kerrisk (man-pages)
2018-08-21 11:06   ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).