mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user