summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-24 14:36:25 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-24 14:36:25 +0000
commite4f8301edfa09a9bda48f3ced5c371f625bc3a32 (patch)
treed03cdfe9a019504bc69aadc33535b6ba940024d2
parent73417c07f73290bfc15f1d16d97d4a4d62a7a945 (diff)
downloadsamba-e4f8301edfa09a9bda48f3ced5c371f625bc3a32.tar.gz
samba-e4f8301edfa09a9bda48f3ced5c371f625bc3a32.tar.bz2
samba-e4f8301edfa09a9bda48f3ced5c371f625bc3a32.zip
use an size_t not a ssize_t when checking for out of bounds errors
(This used to be commit 044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2)
-rw-r--r--source3/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 7a0c566f41..5f30db21e4 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -199,7 +199,7 @@ static int tdb_oob(TDB_CONTEXT *tdb, tdb_off offset)
if ((offset <= tdb->map_size) || (tdb->fd == -1)) return 0;
fstat(tdb->fd, &st);
- if (st.st_size <= (ssize_t)offset) {
+ if (st.st_size <= (size_t)offset) {
tdb->ecode = TDB_ERR_IO;
return -1;
}