diff options
author | Andi Gutmans <andi@php.net> | 1999-09-15 05:42:36 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 1999-09-15 05:42:36 +0000 |
commit | 100148168ab400ec7d0ccc16f2d72c06b6170570 (patch) | |
tree | 1e4a971cbab6358bc3e5ac412a79fe7131f66623 /ext/zlib | |
parent | 0a7fc832531a9fedc832f4db4b8b04552daabbcb (diff) | |
download | php-git-100148168ab400ec7d0ccc16f2d72c06b6170570.tar.gz |
- Thread-unsafe win32 compiles again
- Some strlcpy changes including one bug fix.
Diffstat (limited to 'ext/zlib')
-rw-r--r-- | ext/zlib/zlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index ab763c1b11..79c8208583 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -206,7 +206,7 @@ static gzFile *php3_gzopen_with_path(char *filename, char *mode, char *path, cha if(PG(doc_root)) { snprintf(trypath, MAXPATHLEN, "%s%s", PG(doc_root), filename); } else { - strncpy(trypath,filename,MAXPATHLEN); + strlcpy(trypath,filename,sizeof(trypath)); } if (!_php3_checkuid(trypath,2)) { return(NULL); |