summaryrefslogtreecommitdiff
path: root/test/teststr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/teststr.c')
-rw-r--r--test/teststr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/teststr.c b/test/teststr.c
index d9a505475..951a83001 100644
--- a/test/teststr.c
+++ b/test/teststr.c
@@ -307,7 +307,7 @@ static void overflow_strfsize(abts_case *tc, void *data)
for (; off < 999999999; off += 999) {
apr_strfsize(off, buf);
}
- for (off = 1; off < LONG_MAX && off > 0; off *= 2) {
+ for (off = LONG_MAX; off > 1; off /= 2) {
apr_strfsize(off, buf);
apr_strfsize(off + 1, buf);
apr_strfsize(off - 1, buf);