com php-src: do compare on wchar's: win32/ioutil.c
| From: | Anatol Belski | Date: | Sun, 02 Apr 2017 14:40:36 +0000 |
| Subject: | com php-src: do compare on wchar's: win32/ioutil.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97467@lists.php.net to get a copy of this message | ||
Commit: 80d5c23c0d150ac480e72e931f74035240dd9ba1
Author: Anatol Belski <ab@php.net> Fri, 31 Mar 2017 20:18:58 +0200
Parents: 19a692b7d2ffd603224e3e27d982abc536d3cb87
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=80d5c23c0d150ac480e72e931f74035240dd9ba1
Log:
do compare on wchar's
Changed paths:
M win32/ioutil.c
Diff:
diff --git a/win32/ioutil.c b/win32/ioutil.c
index 6fb89c4..9c0601a 100644
--- a/win32/ioutil.c
+++ b/win32/ioutil.c
@@ -453,7 +453,7 @@ PW32IO size_t php_win32_ioutil_dirname(char *path, size_t len)
endw = pathw + pathw_len - 1;
- if ((2 <= len) && isalpha((int)((unsigned char *)path)[0]) && (':' ==
path[1])) {
+ if ((2 <= pathw_len) && iswalpha((wint_t)(pathw)[0]) && (L':' ==
pathw[1])) {
pathw += 2;
path += 2;
len_adjust += 2;