#include "win95nt.h"
#endif
-#if HAVE_UTIME
-# ifdef PHP_WIN32
-# include <sys/utime.h>
-# else
-# include <utime.h>
-# endif
-#endif
-
-
#include "php_virtual_cwd.h"
#include "php_reentrancy.h" /* for php_strtok_r */
retval = virtual_file_ex(&new_state, path, NULL);
if(retval) {
- int len = min(MAXPATHLEN-1,new_state.cwd_length);
+ int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length;
memcpy(real_path, new_state.cwd, len);
real_path[len] = '\0';
return real_path;