Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows

This commit is contained in:
Kalle Sommer Nielsen 2011-01-31 12:32:32 +00:00
parent 5e82e334dd
commit c8a25b87f1

View File

@ -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;