diff --git a/lib/libulog/ulog_pututxline.c b/lib/libulog/ulog_pututxline.c index d02dda51f49e..d0e79512f5aa 100644 --- a/lib/libulog/ulog_pututxline.c +++ b/lib/libulog/ulog_pututxline.c @@ -126,7 +126,7 @@ ulog_write_utmp_slow(const struct futmp *ut) strncmp(utf.ut_line, ut->ut_line, sizeof utf.ut_line) != 0) continue; lseek(fd, -(off_t)sizeof utf, SEEK_CUR); - write(fd, &ut, sizeof ut); + write(fd, ut, sizeof *ut); found = 1; } close(fd);