com php-src: Reuse delivered length: win32/ioutil.h

From: Date: Wed, 03 Oct 2018 21:12:49 +0000
Subject: com php-src: Reuse delivered length: win32/ioutil.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103347@lists.php.net to get a copy of this message
Commit: 248c857a31b75865ac070b22a1fa711072be148e Author: Anatol Belski <ab@php.net> Wed, 3 Oct 2018 23:10:30 +0200 Parents: 14628f1c5dec3401043109a3d682cb462553cd88 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=248c857a31b75865ac070b22a1fa711072be148e Log: Reuse delivered length Fix length calculation Changed paths: M win32/ioutil.h Diff: diff --git a/win32/ioutil.h b/win32/ioutil.h index db21c44..e49b105 100644 --- a/win32/ioutil.h +++ b/win32/ioutil.h @@ -774,7 +774,7 @@ __forceinline static ssize_t php_win32_ioutil_readlink(const char *path, char *b return ret; } - ret_buf = php_win32_ioutil_conv_w_to_any(retw, PHP_WIN32_CP_IGNORE_LEN, &ret_buf_len); + ret_buf = php_win32_ioutil_conv_w_to_any(retw, ret, &ret_buf_len); if (!ret_buf || ret_buf_len >= buf_len || ret_buf_len >= MAXPATHLEN) { free(pathw); SET_ERRNO_FROM_WIN32_CODE(ERROR_BAD_PATHNAME); @@ -784,7 +784,7 @@ __forceinline static ssize_t php_win32_ioutil_readlink(const char *path, char *b free(pathw); - return ret; + return ret_buf_len; }/*}}}*/ #ifdef __cplusplus

« previous php.cvs (#103347) next »