Fix bug 1766436 tab key crashes dosbox.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2945
This commit is contained in:
parent
8224477b9a
commit
d42eb113ed
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: shell_misc.cpp,v 1.49 2007-02-03 14:04:23 qbix79 Exp $ */
|
||||
/* $Id: shell_misc.cpp,v 1.50 2007-08-03 18:22:45 qbix79 Exp $ */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -223,7 +223,7 @@ void DOS_Shell::InputCommand(char * line) {
|
|||
|
||||
if (p_completion_start) {
|
||||
p_completion_start ++;
|
||||
completion_index = str_index - strlen(p_completion_start);
|
||||
completion_index = str_len - strlen(p_completion_start);
|
||||
} else {
|
||||
p_completion_start = line;
|
||||
completion_index = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue