diff options
author | imp <imp@FreeBSD.org> | 1998-07-02 05:12:53 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1998-07-02 05:12:53 +0000 |
commit | 3dee339f84ff499afaa4677cfd0c21435ea1dfbd (patch) | |
tree | 5640572dc01e7085864ee4a1b03d38953f3b4e8f /usr.bin/doscmd/intff.c | |
parent | 2bf9f0966d281ff87e47b459121ff753c7ec14cc (diff) | |
download | FreeBSD-src-3dee339f84ff499afaa4677cfd0c21435ea1dfbd.zip FreeBSD-src-3dee339f84ff499afaa4677cfd0c21435ea1dfbd.tar.gz |
o fix bug in conversion of DOS 32-bit signed number to FreeBSD's 64-bit
off_t.
This fixed the primitive 'copy protection' that the program I'm using.
Diffstat (limited to 'usr.bin/doscmd/intff.c')
-rw-r--r-- | usr.bin/doscmd/intff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doscmd/intff.c b/usr.bin/doscmd/intff.c index 5035a1f..ae86ac5 100644 --- a/usr.bin/doscmd/intff.c +++ b/usr.bin/doscmd/intff.c @@ -29,7 +29,7 @@ * * BSDI intff.c,v 2.2 1996/04/08 19:32:56 bostic Exp * - * $Id: intff.c,v 1.2 1997/09/30 22:03:57 jlemon Exp $ + * $Id: intff.c,v 1.3 1998/07/01 19:56:17 imp Exp $ */ #include "doscmd.h" @@ -450,7 +450,7 @@ int2f11_lseek(regcontext_t *REGS) off_t offset; fd = r_sft->fd; - offset = (R_CX << 16) + R_DX; + offset = (off_t) ((int) ((R_CX << 16) + R_DX); debug(D_REDIR,"lseek(%d, 0x%qx, SEEK_END)\n", fd, offset); |