diff options
author | 1998-03-01 21:58:12 +0000 | |
---|---|---|
committer | 1998-03-01 21:58:12 +0000 | |
commit | 83afd1bd7de4a8be846142972fd8894d6bf8aff5 (patch) | |
tree | f921bd2b6c1454bc5af93002ea9aa013c1f8f0dd | |
parent | If an /etc/exports entry has a single host that cannot be looked (diff) | |
download | wireguard-openbsd-83afd1bd7de4a8be846142972fd8894d6bf8aff5.tar.xz wireguard-openbsd-83afd1bd7de4a8be846142972fd8894d6bf8aff5.zip |
Fix int overflow
-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) |