diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-04-13 00:14:56 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2021-04-13 00:14:56 +0000 |
commit | 011971a455d7dcb225d2d2611d3280ca916c098a (patch) | |
tree | 669854829b7cc04a71bf535a8e7cd466d2d6f718 | |
parent | 5ad5826db13626e5ee48aff2e58bbd0ce5ef0637 (diff) | |
download | utmps-011971a455d7dcb225d2d2611d3280ca916c098a.tar.xz |
Do not null-terminate ut_id
-rw-r--r-- | src/utmps/utmps_utmpx_unpack.c | 1 |
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 ; } |