diff options
author | Tobias Weingartner <weingart@cvs.openbsd.org> | 1998-03-01 21:58:13 +0000 |
---|---|---|
committer | Tobias Weingartner <weingart@cvs.openbsd.org> | 1998-03-01 21:58:13 +0000 |
commit | 743cbf3f37968e0f494d3ec129b69d7f5f0b5508 (patch) | |
tree | 72b341d8f3ceb88e8bf6af1657e1c62a7589e81f /sys/arch/i386 | |
parent | d3570eed67eb963596402c7f1f11342fafdb9b9a (diff) |
Fix int overflow
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/stand/installboot/installboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/installboot/installboot.c b/sys/arch/i386/stand/installboot/installboot.c index 6ae7d4667c8..1c8cd2b8807 100644 --- a/sys/arch/i386/stand/installboot/installboot.c +++ b/sys/arch/i386/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.26 1997/10/28 10:06:34 deraadt Exp $ */ +/* $OpenBSD: installboot.c,v 1.27 1998/03/01 21:58:12 weingart Exp $ */ /* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */ /* @@ -343,7 +343,7 @@ devread(fd, buf, blk, size, msg) size_t size; char *msg; { - if (lseek(fd, dbtob(blk), SEEK_SET) != dbtob(blk)) + if (lseek(fd, dbtob((off_t)blk), SEEK_SET) != dbtob((off_t)blk)) err(1, "%s: devread: lseek", msg); if (read(fd, buf, size) != size) |