Nikolay Sivov : server: Fix string length used with strncmpW().
Alexandre Julliard
julliard at winehq.org
Tue Aug 27 14:47:56 CDT 2013
Module: wine
Branch: master
Commit: 2ef7e5fdaeae5a14ea87bf12a7e055727ed750bc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2ef7e5fdaeae5a14ea87bf12a7e055727ed750bc
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Aug 27 14:15:36 2013 +0400
server: Fix string length used with strncmpW().
---
server/console.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/console.c b/server/console.c
index 3f90937..538ad3f 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
More information about the wine-cvs
mailing list