mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
console fix warning build.
This commit is contained in:
parent
6faa03a59d
commit
038848b246
1 changed files with 2 additions and 2 deletions
|
@ -457,7 +457,7 @@ Key_Console(int key)
|
||||||
history_line = (edit_line + 1) & (NUM_KEY_LINES-1);
|
history_line = (edit_line + 1) & (NUM_KEY_LINES-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(key_lines[edit_line], key_lines[history_line]);
|
memmove(key_lines[edit_line], key_lines[history_line], sizeof(key_lines[edit_line]));
|
||||||
key_linepos = (int)strlen(key_lines[edit_line]);
|
key_linepos = (int)strlen(key_lines[edit_line]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -484,7 +484,7 @@ Key_Console(int key)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strcpy(key_lines[edit_line], key_lines[history_line]);
|
memmove(key_lines[edit_line], key_lines[history_line], sizeof(key_lines[edit_line]));
|
||||||
key_linepos = (int)strlen(key_lines[edit_line]);
|
key_linepos = (int)strlen(key_lines[edit_line]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue