Module: wine Branch: master Commit: 9877b53b8cd070dd92d3a4d16b39343a7283b65c URL: http://source.winehq.org/git/wine.git/?a=commit;h=9877b53b8cd070dd92d3a4d16b...
Author: Jason Edmeades jason@edmeades.me.uk Date: Tue Sep 4 23:40:43 2012 +0100
cmd: Fix incorrect pointer comparison.
---
programs/cmd/builtins.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 4ce78f7..b2f9aeb 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -2131,7 +2131,7 @@ void WCMD_setshow_default (const WCHAR *command) { if (*command != '"') *pos++ = *command; command++; } - while (pos > command && (*(pos-1) == ' ' || *(pos-1) == '\t')) + while (pos > string && (*(pos-1) == ' ' || *(pos-1) == '\t')) pos--; *pos = 0x00;