From 66996ec88238ad1428dbf2c5347b425784d436f9 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 14 Jan 2003 11:13:18 +0000 Subject: [PATCH] fixed a bug in parsecommand for gcc3.2 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@628 --- src/debug/debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index 720613fd..204eacb9 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -676,7 +676,8 @@ bool ChangeRegister(char* str) bool ParseCommand(char* str) { char* found = str; - while (*found) *found++=toupper(*found); + for(char* idx = found;*idx != 0; idx++) + *idx = toupper(*idx); found = strstr(str,"BP "); if (found) { // Add new breakpoint found+=3;