diff options
author | Andi Gutmans <andi@php.net> | 1999-09-18 19:13:38 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 1999-09-18 19:13:38 +0000 |
commit | a5783da8a9a70b1b265038c68d49a41e061b25c6 (patch) | |
tree | 46dc65ccfaf701b8ba924ab34cfc53ee7838dc0a /win32/readdir.c | |
parent | de130563071d594af0122dee639e566d6a101f8f (diff) | |
download | php-git-a5783da8a9a70b1b265038c68d49a41e061b25c6.tar.gz |
- Make Win32 compile again
Diffstat (limited to 'win32/readdir.c')
-rw-r--r-- | win32/readdir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/readdir.c b/win32/readdir.c index 2ebec905e3..5a680ff5a7 100644 --- a/win32/readdir.c +++ b/win32/readdir.c @@ -4,6 +4,7 @@ #define NEEDRDH 1 #include "readdir.h" +#include "php.h" /********************************************************************** * Implement dirent-style opendir/readdir/closedir on Window 95/NT @@ -62,7 +63,7 @@ struct dirent *readdir(DIR * dp) } dp->offset++; - strncpy(dp->dent.d_name, dp->fileinfo.name, _MAX_FNAME); + strlcpy(dp->dent.d_name, dp->fileinfo.name, _MAX_FNAME+1); dp->dent.d_ino = 1; dp->dent.d_reclen = strlen(dp->dent.d_name); dp->dent.d_off = dp->offset; |