mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows
This commit is contained in:
parent
5e82e334dd
commit
c8a25b87f1
@ -428,7 +428,7 @@ mysqlnd_pam_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self,
|
||||
|
||||
/* copy pass*/
|
||||
if (passwd && passwd_len) {
|
||||
ret = (zend_uchar*) strndup(passwd, passwd_len);
|
||||
ret = (zend_uchar*) zend_strndup(passwd, passwd_len);
|
||||
}
|
||||
*auth_data_len = passwd_len;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user