INN commit: trunk/storage/buffindexed (buffindexed.c)
INN Commit
Russ_Allbery at isc.org
Sat Feb 10 22:18:52 UTC 2007
Date: Saturday, February 10, 2007 @ 14:18:52
Author: eagle
Revision: 7601
When calculating the length of a buffer, cast the calculation to off_t
since it may be longer than unsigned long. Thanks, Kirill Berezin.
Modified:
trunk/storage/buffindexed/buffindexed.c
---------------+
buffindexed.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: buffindexed.c
===================================================================
--- buffindexed.c 2007-02-09 02:47:01 UTC (rev 7600)
+++ buffindexed.c 2007-02-10 22:18:52 UTC (rev 7601)
@@ -353,8 +353,8 @@
}
l = ++p;
- /* Length/size of symbolic partition */
- len = strtoul(l, NULL, 10) * 1024; /* This value in KB in decimal */
+ /* Length/size of symbolic partition in KB */
+ len = strtoul(l, NULL, 10) * (off_t) 1024;
/*
** The minimum article offset will be the size of the bitfield itself,
** len / (blocksize * 8), plus however many additional blocks the OVBUFFHEAD
More information about the inn-committers
mailing list