diff options
author | agc <agc@pkgsrc.org> | 2001-02-22 11:34:58 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-02-22 11:34:58 +0000 |
commit | b6af12f488da9e57f40caff96caee00c76594fa4 (patch) | |
tree | e37cd3f146e9883b4101d3e30ad4a2d045a060a9 /Makefile | |
parent | 2e69b8686fb9b4b45e5861eac0b69d8d007ec49b (diff) | |
download | pkgsrc-b6af12f488da9e57f40caff96caee00c76594fa4.tar.gz |
Add one more patch, correcting sign extension in two places:
> From Wofgang Solfrank (ws@tools.de)
> What I discovered was a problem in ckddasd.c, where there are two lseeks
> with an offset of -(CKDDASD_RECHDR_SIZE). Now CKDDASD_RECHDR_SIZE is
> defined (in hercules.h) as sizeof(CKDDASD_RECHDR), which happens to be
> an unsigned int. Since the offset in the lseek (and in the ckd_lseek
> that is used as an interface routine to it) is of type off_t, i.e. 64-bit,
> the unsigned is zero-extended to 64 bits, and thus the sign is lost.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions