summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/teststr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/teststr.c b/test/teststr.c
index 1a1d8fa01..432fb6b21 100644
--- a/test/teststr.c
+++ b/test/teststr.c
@@ -309,7 +309,8 @@ static void overflow_strfsize(abts_case *tc, void *data)
}
for (off = LONG_MAX; off > 1; off /= 2) {
apr_strfsize(off, buf);
- apr_strfsize(off + 1, buf);
+ if (sizeof(apr_off_t) > sizeof(long) || off < LONG_MAX)
+ apr_strfsize(off + 1, buf);
apr_strfsize(off - 1, buf);
}