From: Kalle Sommer Nielsen Date: Mon, 31 Jan 2011 12:32:32 +0000 (+0000) Subject: Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms... X-Git-Tag: php-5.4.0alpha1~191^2~290 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8a25b87f11db551a0d3bfd069b924b0f760aca2;p=php Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows --- diff --git a/ext/mysqlnd/mysqlnd_auth.c b/ext/mysqlnd/mysqlnd_auth.c index 56f821232a..1bb08013c2 100644 --- a/ext/mysqlnd/mysqlnd_auth.c +++ b/ext/mysqlnd/mysqlnd_auth.c @@ -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;