cmd: Fix incorrect pointer comparison.
This commit is contained in:
parent
141e33b845
commit
9877b53b8c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue