diff options
Diffstat (limited to 'test/conf_include_test.c')
| -rw-r--r-- | test/conf_include_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/conf_include_test.c b/test/conf_include_test.c index 2481a2380b76..f6835d59e79e 100644 --- a/test/conf_include_test.c +++ b/test/conf_include_test.c @@ -158,7 +158,7 @@ static int test_check_overflow(void) char max[(sizeof(long) * 8) / 3 + 3]; char *p; - p = max + sprintf(max, "0%ld", LONG_MAX) - 1; + p = max + BIO_snprintf(max, sizeof(max), "0%ld", LONG_MAX) - 1; setenv("FNORD", max, 1); if (!TEST_true(NCONF_get_number(NULL, "missing", "FNORD", &val)) || !TEST_long_eq(val, LONG_MAX)) |
