diff options
author | phk <phk@FreeBSD.org> | 2003-04-14 09:36:39 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-04-14 09:36:39 +0000 |
commit | 3f6cd8397d4a70b56bfde286d1f43d540c245fa6 (patch) | |
tree | 953c0422cb44f954b8df85b53ce094a23939ca73 /sbin/gbde | |
parent | c10cd4d964cdb50012421cb5d82c7e1ac7357fcf (diff) | |
download | FreeBSD-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.c | 2 |
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 |