diff options
author | Kalle Sommer Nielsen <kalle@php.net> | 2011-01-31 12:32:32 +0000 |
---|---|---|
committer | Kalle Sommer Nielsen <kalle@php.net> | 2011-01-31 12:32:32 +0000 |
commit | c8a25b87f11db551a0d3bfd069b924b0f760aca2 (patch) | |
tree | 8f1cca11f8c71731edabb77e4c267450734c9e0c /ext/mysqlnd/mysqlnd_auth.c | |
parent | 5e82e334ddffcf577542a74a37f3388d14790686 (diff) | |
download | php-git-c8a25b87f11db551a0d3bfd069b924b0f760aca2.tar.gz |
Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows
Diffstat (limited to 'ext/mysqlnd/mysqlnd_auth.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |