summaryrefslogtreecommitdiff
path: root/reentr.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-03-10 15:19:57 -0600
committerKarl Williamson <khw@cpan.org>2020-07-30 16:37:34 -0600
commit81169c06a76f62ff987ed990ac910c2ae08b3f91 (patch)
tree117bc65731cf4174fce68f6900d6db0117b01109 /reentr.c
parent95fb10e3ebf3fdbf96dcdfc0451fb783423445aa (diff)
downloadperl-81169c06a76f62ff987ed990ac910c2ae08b3f91.tar.gz
reentr.c: Buffer sizes for asctime_r,ctime_r are small
The needed sizes of these are stated in the man pages, and are much smaller than were being allocated.
Diffstat (limited to 'reentr.c')
-rw-r--r--reentr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/reentr.c b/reentr.c
index 8ddda7bfc0..8438c8f90f 100644
--- a/reentr.c
+++ b/reentr.c
@@ -52,14 +52,14 @@ Perl_reentrant_size(pTHX) {
# define REENTRANTUSUALSIZE 4096 /* Make something up. */
# ifdef HAS_ASCTIME_R
- PL_reentrant_buffer->_asctime_size = REENTRANTSMALLSIZE;
+ PL_reentrant_buffer->_asctime_size = 26;
# endif /* HAS_ASCTIME_R */
# ifdef HAS_CRYPT_R
# endif /* HAS_CRYPT_R */
# ifdef HAS_CTIME_R
- PL_reentrant_buffer->_ctime_size = REENTRANTSMALLSIZE;
+ PL_reentrant_buffer->_ctime_size = 26;
# endif /* HAS_CTIME_R */
# ifdef HAS_GETGRNAM_R