summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-04-13 00:14:56 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-04-13 00:14:56 +0000
commit011971a455d7dcb225d2d2611d3280ca916c098a (patch)
tree669854829b7cc04a71bf535a8e7cd466d2d6f718
parent5ad5826db13626e5ee48aff2e58bbd0ce5ef0637 (diff)
downloadutmps-011971a455d7dcb225d2d2611d3280ca916c098a.tar.xz
Do not null-terminate ut_id
-rw-r--r--src/utmps/utmps_utmpx_unpack.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/utmps/utmps_utmpx_unpack.c b/src/utmps/utmps_utmpx_unpack.c
index a774356..218126b 100644
--- a/src/utmps/utmps_utmpx_unpack.c
+++ b/src/utmps/utmps_utmpx_unpack.c
@@ -7,7 +7,6 @@ void utmps_utmpx_unpack (char const *s, struct utmpx *b)
{
memcpy(b, s, sizeof(struct utmpx)) ;
b->ut_user[UTMPS_UT_NAMESIZE - 1] = 0 ;
- b->ut_id[UTMPS_UT_IDSIZE - 1] = 0 ;
b->ut_line[UTMPS_UT_LINESIZE - 1] = 0 ;
b->ut_host[UTMPS_UT_HOSTSIZE - 1] = 0 ;
}