Skip to content

Commit c8a25b8

Browse files
committed
Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows
1 parent 5e82e33 commit c8a25b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqlnd/mysqlnd_auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ mysqlnd_pam_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self,
428428

429429
/* copy pass*/
430430
if (passwd && passwd_len) {
431-
ret = (zend_uchar*) strndup(passwd, passwd_len);
431+
ret = (zend_uchar*) zend_strndup(passwd, passwd_len);
432432
}
433433
*auth_data_len = passwd_len;
434434

0 commit comments

Comments
 (0)