From 152b00b20f09062a97cf0f05d8bad84cc56a02f5 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 28 Apr 2016 04:23:26 +0200 Subject: [PATCH] server: Fix detection of duplicate console history lines. Signed-off-by: Sebastian Lackner Signed-off-by: Alexandre Julliard --- server/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/console.c b/server/console.c index efb20daed45..4d275f08e2a 100644 --- a/server/console.c +++ b/server/console.c @@ -1055,7 +1055,7 @@ static void console_input_append_hist( struct console_input* console, const WCHA ptr[len] = 0; if (console->history_mode && console->history_index && - strncmpW( console->history[console->history_index - 1], ptr, len ) == 0) + !strcmpW( console->history[console->history_index - 1], ptr )) { /* ok, mode ask us to not use twice the same string... * so just free mem and returns