]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Debugger L and S command path can be now in quotes.
authorToni Wilen <twilen@winuae.net>
Wed, 6 Aug 2025 17:52:41 +0000 (20:52 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 6 Aug 2025 17:52:41 +0000 (20:52 +0300)
debug.cpp

index b43700962c1837e50576688cbf61270a859ef8cb..9d69f90f56023fe22e66145488b8d219166c9d57 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -1060,7 +1060,7 @@ static size_t next_string (TCHAR **c, TCHAR *out, int max, int forceupper)
                        ignore_ws (c);
                        break;
                }
-               *p = next_char (c);
+               *p = next_char2(c);
                if (forceupper)
                        *p = _totupper(*p);
                *++p = 0;
@@ -5992,20 +5992,12 @@ static void saveloadmem (TCHAR **cc, bool save)
        uae_u8 b;
        uae_u32 src, src2;
        int len, len2;
-       TCHAR *name;
+       TCHAR name[MAX_PATH];
        FILE *fp;
 
        if (!more_params (cc))
                goto S_argh;
-
-       name = *cc;
-       while (**cc != '\0' && !isspace (**cc))
-               (*cc)++;
-       if (!isspace (**cc))
-               goto S_argh;
-
-       **cc = '\0';
-       (*cc)++;
+       next_string(cc, name, sizeof(name) / sizeof(TCHAR), 0);
        if (!more_params (cc))
                goto S_argh;
        src2 = src = readhex(cc, NULL);