]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix debugger quoted string read
authorToni Wilen <twilen@winuae.net>
Sun, 17 Aug 2025 16:23:16 +0000 (19:23 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 17 Aug 2025 16:23:16 +0000 (19:23 +0300)
debug.cpp

index 9d69f90f56023fe22e66145488b8d219166c9d57..c53154b7b18c07f5ae9b9436cb930f5acb361680 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -1054,19 +1054,24 @@ static size_t next_string (TCHAR **c, TCHAR *out, int max, int forceupper)
        }
        *p = 0;
        while (**c != 0) {
-               if (**c == '\"' && startmarker)
+               if (**c == '\"' && startmarker) {
+                       (*c)++;
+                       ignore_ws(c);
                        break;
+               }
                if (**c == 32 && !startmarker) {
                        ignore_ws (c);
                        break;
                }
                *p = next_char2(c);
-               if (forceupper)
+               if (forceupper) {
                        *p = _totupper(*p);
+               }
                *++p = 0;
                max--;
-               if (max <= 1)
+               if (max <= 1) {
                        break;
+               }
        }
        return _tcslen (out);
 }