Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aaa4c91

Browse files
committed
Replace strtok_r with php_strtok_r
1 parent e24b084 commit aaa4c91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,13 +1195,13 @@ redis_parse_client_list_response(char *response, zval *z_ret)
11951195
{
11961196
char *p1, *s1 = NULL;
11971197

1198-
if ((p1 = strtok_r(response, _NL, &s1)) != NULL) {
1198+
if ((p1 = php_strtok_r(response, _NL, &s1)) != NULL) {
11991199
array_init(z_ret);
12001200
do {
12011201
char *p2, *s2 = NULL;
12021202
zval z_sub;
12031203

1204-
if ((p2 = strtok_r(p1, " ", &s2)) != NULL) {
1204+
if ((p2 = php_strtok_r(p1, " ", &s2)) != NULL) {
12051205
array_init(&z_sub);
12061206
do {
12071207
char *p;

0 commit comments

Comments
 (0)