1
0
Fork 0

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:
Peter Veenstra 2007-08-03 18:22:45 +00:00
parent 8224477b9a
commit d42eb113ed

View file

@ -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;