summaryrefslogtreecommitdiffstats
path: root/sbin/gbde
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-14 09:36:39 +0000
committerphk <phk@FreeBSD.org>2003-04-14 09:36:39 +0000
commit3f6cd8397d4a70b56bfde286d1f43d540c245fa6 (patch)
tree953c0422cb44f954b8df85b53ce094a23939ca73 /sbin/gbde
parentc10cd4d964cdb50012421cb5d82c7e1ac7357fcf (diff)
downloadFreeBSD-src-3f6cd8397d4a70b56bfde286d1f43d540c245fa6.zip
FreeBSD-src-3f6cd8397d4a70b56bfde286d1f43d540c245fa6.tar.gz
Avoid off_t -> integer overflow when sorting the locksector addresses.
Diffstat (limited to 'sbin/gbde')
-rw-r--r--sbin/gbde/gbde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/gbde/gbde.c b/sbin/gbde/gbde.c
index fbea437..f36df05 100644
--- a/sbin/gbde/gbde.c
+++ b/sbin/gbde/gbde.c
@@ -441,7 +441,7 @@ sorthelp(const void *a, const void *b)
oa = a;
ob = b;
- return (*oa - *ob);
+ return (*oa > *ob);
}
static void
OpenPOWER on IntegriCloud