From a462acbdb38207f1e5977479db70b5dcbab380f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Tue, 6 Dec 2022 20:03:00 -0800 Subject: [PATCH] pcre2test: print max stack size in the right units --- src/pcre2test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcre2test.c b/src/pcre2test.c index 18e3f0f11..ecd2dc284 100644 --- a/src/pcre2test.c +++ b/src/pcre2test.c @@ -9004,7 +9004,7 @@ while (argc > 1 && argv[op][0] == '-' && argv[op][1] != 0) fprintf(stderr, "pcre2test: requested stack size %luMiB is greater than hard limit " "%luMiB\n", (unsigned long int)stack_size, - (unsigned long int)(rlim.rlim_max)); + (unsigned long int)(rlim.rlim_max / (1024 * 1024))); exit(1); } rc = setrlimit(RLIMIT_STACK, &rlim);