From e4f8301edfa09a9bda48f3ced5c371f625bc3a32 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Apr 2000 14:36:25 +0000 Subject: use an size_t not a ssize_t when checking for out of bounds errors (This used to be commit 044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2) --- source3/tdb/tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit