summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdb.c
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
commit044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2 (patch)
treec232b5cc730c86318d1fc22128bb31f13399ac6d /source/tdb/tdb.c
parent2fba24ef0e4cae64c5a179370c83d8bbf4e70bb8 (diff)
downloadsamba-044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2.tar.gz
samba-044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2.tar.xz
samba-044af3cf977e3172b3b1ce3f71457d5b0a4fc1b2.zip
use an size_t not a ssize_t when checking for out of bounds errors
Diffstat (limited to 'source/tdb/tdb.c')
-rw-r--r--source/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c
index 7a0c566f41a..5f30db21e4f 100644
--- a/source/tdb/tdb.c
+++ b/source/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;
}