From: Ilia Alshanetsky Date: Mon, 11 Jul 2011 17:01:23 +0000 (+0000) Subject: Fixed bug #55014 (Compile failure due to improper use of ctime_r()). X-Git-Tag: php-5.4.0alpha2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e80c55448ce798120071f0bf8fa203c9daf7ad89;p=php Fixed bug #55014 (Compile failure due to improper use of ctime_r()). --- diff --git a/main/reentrancy.c b/main/reentrancy.c index 5a714273b9..b2fe8f117f 100644 --- a/main/reentrancy.c +++ b/main/reentrancy.c @@ -60,14 +60,14 @@ static MUTEX_T reentrant_locks[NUMBER_OF_LOCKS]; PHPAPI char *php_ctime_r(const time_t *clock, char *buf) { - if (ctime_r(clock, buf, 26) == buf) + if (ctime_r(clock, buf) == buf) return (buf); return (NULL); } PHPAPI char *php_asctime_r(const struct tm *tm, char *buf) { - if (asctime_r(tm, buf, 26) == buf) + if (asctime_r(tm, buf) == buf) return (buf); return (NULL); }