diff options
author | Karl Williamson <khw@cpan.org> | 2020-03-10 15:19:57 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-07-30 16:37:34 -0600 |
commit | 81169c06a76f62ff987ed990ac910c2ae08b3f91 (patch) | |
tree | 117bc65731cf4174fce68f6900d6db0117b01109 /reentr.c | |
parent | 95fb10e3ebf3fdbf96dcdfc0451fb783423445aa (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |