summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-02-22 11:34:58 +0000
committeragc <agc@pkgsrc.org>2001-02-22 11:34:58 +0000
commitb6af12f488da9e57f40caff96caee00c76594fa4 (patch)
treee37cd3f146e9883b4101d3e30ad4a2d045a060a9 /devel
parent2e69b8686fb9b4b45e5861eac0b69d8d007ec49b (diff)
downloadpkgsrc-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 'devel')
0 files changed, 0 insertions, 0 deletions