From 011971a455d7dcb225d2d2611d3280ca916c098a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 13 Apr 2021 00:14:56 +0000 Subject: Do not null-terminate ut_id --- src/utmps/utmps_utmpx_unpack.c | 1 - 1 file changed, 1 deletion(-) 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 ; } -- cgit 1.4.1