From 0bc987c9b4d3575963b56dae5b45647ccf458992 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Wed, 13 Nov 2013 18:17:06 +0000 Subject: [PATCH] fix clashing --- phpdbg_prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 6edd61bb5e..c2bedddcec 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -578,7 +578,7 @@ int phpdbg_do_cmd(const phpdbg_command_t *command, char *cmd_line, size_t cmd_le while (command && command->name && command->handler) { if ((command->name_len == expr_len && memcmp(cmd, command->name, expr_len) == 0) - ||(command->alias && command->alias == cmd_line[0])) { + || ((expr_len == 1) && (command->alias && command->alias == cmd_line[0]))) { PHPDBG_G(last) = (phpdbg_command_t*) command; PHPDBG_G(last_params) = expr; -- 2.40.0