diff options
| author | Jouni Ahto <jah@php.net> | 1999-11-27 20:51:17 +0000 |
|---|---|---|
| committer | Jouni Ahto <jah@php.net> | 1999-11-27 20:51:17 +0000 |
| commit | 3e8303abf0dfab5a93d5109ef0abe8e4c1e55f41 (patch) | |
| tree | 31c5c32865347ce440d266bce0e9abbad909ac9c /ext/dbase/dbf_misc.c | |
| parent | 33bdf19051fd8b79c434de5b02ea329ecb03bc76 (diff) | |
| download | php-git-3e8303abf0dfab5a93d5109ef0abe8e4c1e55f41.tar.gz | |
Use thread-safe versions of localtime and gmtime
Diffstat (limited to 'ext/dbase/dbf_misc.c')
| -rw-r--r-- | ext/dbase/dbf_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dbase/dbf_misc.c b/ext/dbase/dbf_misc.c index 84573e47a4..fedb0d0f9c 100644 --- a/ext/dbase/dbf_misc.c +++ b/ext/dbase/dbf_misc.c @@ -151,11 +151,11 @@ int db_date_day(char *cp) char *db_cur_date(char *cp) { - struct tm *ctm; + struct tm *ctm, tmbuf; time_t c_time; c_time = time((time_t *)NULL); - ctm = localtime(&c_time); + ctm = localtime_r(&c_time, &tmbuf); if (cp == NULL) cp = (char *)malloc(9); |
