From 277b10a5c059437754452b6de7e42aa6bde64e13 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Tue, 12 Nov 2013 13:21:55 +0000 Subject: [PATCH] ... --- phpdbg_prompt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 3040b80d26..6bfc16a70c 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -615,7 +615,11 @@ static const phpdbg_command_t phpdbg_prompt_commands[] = { int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_len TSRMLS_DC) /* {{{ */ { char *params = NULL; +#ifndef _WIN32 const char *cmd = strtok_r(cmd_line, " ", ¶ms); +#else + const char *cmd = strtok_s(cmd_line, " ", ¶ms); +#endif size_t expr_len = cmd != NULL ? strlen(cmd) : 0; while (command && command->name) { -- 2.50.1