aboutsummaryrefslogtreecommitdiff
path: root/login/pututline_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/pututline_r.c')
-rw-r--r--login/pututline_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/pututline_r.c b/login/pututline_r.c
index 42ea3cd..33ba96f 100644
--- a/login/pututline_r.c
+++ b/login/pututline_r.c
@@ -96,7 +96,7 @@ __pututline_r (const struct utmp *id, struct utmp_data *utmp_data)
if (result >= 0)
/* Position file correctly. */
if (utmp_data->loc_utmp < (off_t) sizeof (struct utmp)
- || utmp_data->loc_utmp - sizeof (struct utmp) > st.st_size)
+ || (off_t) (utmp_data->loc_utmp - sizeof (struct utmp)) > st.st_size)
/* Not located at any valid entry. Add at the end. */
{
result = lseek (utmp_data->ut_fd, 0L, SEEK_END);