summaryrefslogtreecommitdiff
path: root/win32/winutil.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-09 15:31:05 +0200
committerAnatol Belski <ab@php.net>2017-07-09 15:31:05 +0200
commit84079f4a1ef4c3c10ef81da33e75949ca8ab8347 (patch)
treeb1e9488d1009f1b2a5bc344c9fd1413ba3eb7d18 /win32/winutil.c
parente403acc74b63d051ce8fd62f081c1302a720a590 (diff)
downloadphp-git-84079f4a1ef4c3c10ef81da33e75949ca8ab8347.tar.gz
cleanup casts
Diffstat (limited to 'win32/winutil.c')
-rw-r--r--win32/winutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/winutil.c b/win32/winutil.c
index 2852a19e30..34dda95498 100644
--- a/win32/winutil.c
+++ b/win32/winutil.c
@@ -36,9 +36,9 @@ PHP_WINUTIL_API char *php_win32_error_to_msg(HRESULT error)
return (buf ? (char *) buf : "");
}/*}}}*/
-int php_win32_check_trailing_space(const char * path, const int path_len)
+int php_win32_check_trailing_space(const char * path, const size_t path_len)
{/*{{{*/
- if (path_len < 1) {
+ if (path_len > MAXPATHLEN - 1) {
return 1;
}
if (path) {