summaryrefslogtreecommitdiff
path: root/ext/ftp/ftp.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-26 16:51:57 +0000
committerSascha Schumann <sas@php.net>1999-11-26 16:51:57 +0000
commit2f6ded9ac9bb8826eb9b3b79b8cdc018c90aff54 (patch)
treec47d480cc160fad7842ebee9ee96672e57e54628 /ext/ftp/ftp.c
parentfe48f6ed6aff5572fbb2c093690ecf9b24248b86 (diff)
downloadphp-git-2f6ded9ac9bb8826eb9b3b79b8cdc018c90aff54.tar.gz
Convert more source files to use thread-safe functions
Diffstat (limited to 'ext/ftp/ftp.c')
-rw-r--r--ext/ftp/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 47131efa31..0e39e89cf5 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -609,7 +609,7 @@ time_t
ftp_mdtm(ftpbuf_t *ftp, const char *path)
{
time_t stamp;
- struct tm *gmt;
+ struct tm *gmt, tmbuf;
struct tm tm;
char *ptr;
int n;
@@ -635,7 +635,7 @@ ftp_mdtm(ftpbuf_t *ftp, const char *path)
/* figure out the GMT offset */
stamp = time(NULL);
- gmt = gmtime(&stamp);
+ gmt = gmtime_r(&stamp, &tmbuf);
gmt->tm_isdst = -1;
/* apply the GMT offset */