summaryrefslogtreecommitdiff
path: root/src/utmps/utmps-wtmpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utmps/utmps-wtmpd.c')
-rw-r--r--src/utmps/utmps-wtmpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utmps/utmps-wtmpd.c b/src/utmps/utmps-wtmpd.c
index c38168a..7aff741 100644
--- a/src/utmps/utmps-wtmpd.c
+++ b/src/utmps/utmps-wtmpd.c
@@ -89,7 +89,7 @@ int main (void)
answer(errno) ;
strerr_diefu1sys(111, "lseek on wtmp") ;
}
- w = allwrite(fd, buf + 1, sizeof(struct utmpx)) ;
+ w = allwrite(fd, buf, sizeof(struct utmpx)) ;
if (w < sizeof(struct utmpx))
{
int e = errno ;