diff options
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginrec.c b/loginrec.c index 8b82fa29d..e7542c92a 100644 --- a/loginrec.c +++ b/loginrec.c | |||
@@ -160,7 +160,7 @@ | |||
160 | #include "xmalloc.h" | 160 | #include "xmalloc.h" |
161 | #include "loginrec.h" | 161 | #include "loginrec.h" |
162 | 162 | ||
163 | RCSID("$Id: loginrec.c,v 1.17 2000/07/11 02:15:54 djm Exp $"); | 163 | RCSID("$Id: loginrec.c,v 1.18 2000/08/09 06:34:28 djm Exp $"); |
164 | 164 | ||
165 | /** | 165 | /** |
166 | ** prototypes for helper functions in this file | 166 | ** prototypes for helper functions in this file |
@@ -740,7 +740,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut) | |||
740 | } | 740 | } |
741 | 741 | ||
742 | (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); | 742 | (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); |
743 | if (atomicio(write, fd, ut, sizeof(ut)) != sizeof(ut)) | 743 | if (atomicio(write, fd, ut, sizeof(*ut)) != sizeof(*ut)) |
744 | log("utmp_write_direct: error writing %s: %s", | 744 | log("utmp_write_direct: error writing %s: %s", |
745 | UTMP_FILE, strerror(errno)); | 745 | UTMP_FILE, strerror(errno)); |
746 | 746 | ||