summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-04-21 15:15:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-04-21 15:15:40 +0000
commit6a2a3c144c9bf819703b032d436220baed7bf4a9 (patch)
tree15a0c0c86bf67fca51d7d1f724e0659b27813c71 /include
parentf01eb4b386abe7e1f13fb61ed4194e43adc3157a (diff)
mention that strings in lastlog and utmp are not guaranteed to be NUL-terminated
Diffstat (limited to 'include')
-rw-r--r--include/utmp.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/utmp.h b/include/utmp.h
index 73988605f90..d0d21a9d8fe 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: utmp.h,v 1.2 1997/09/21 10:46:00 niklas Exp $ */
+/* $OpenBSD: utmp.h,v 1.3 1999/04/21 15:15:39 millert Exp $ */
/* $NetBSD: utmp.h,v 1.6 1994/10/26 00:56:40 cgd Exp $ */
/*
@@ -52,6 +52,11 @@
#define UT_LINESIZE 8
#define UT_HOSTSIZE 16
+/*
+ * Note that these are *not* C strings and thus are not
+ * guaranteed to be NUL-terminated.
+ */
+
struct lastlog {
time_t ll_time;
char ll_line[UT_LINESIZE];