From 2ef7e5fdaeae5a14ea87bf12a7e055727ed750bc Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Tue, 27 Aug 2013 14:15:36 +0400 Subject: [PATCH] server: Fix string length used with strncmpW(). --- server/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/console.c b/server/console.c index 3f909372967..538ad3f126b 100644 --- a/server/console.c +++ b/server/console.c @@ -1034,7 +1034,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 * sizeof(WCHAR) ) == 0) + strncmpW( console->history[console->history_index - 1], ptr, len ) == 0) { /* ok, mode ask us to not use twice the same string... * so just free mem and returns