From b5467a969614d570616c2311c2098771f43faf07 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 9 May 2020 19:58:55 +0300 Subject: [PATCH] Fix [] parsing. --- debug.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debug.cpp b/debug.cpp index 9ca68419..5d2e11ad 100644 --- a/debug.cpp +++ b/debug.cpp @@ -7326,10 +7326,9 @@ static void debug_sprintf_do(uae_u32 s) } else if (cn == '[') { char *next = strchr(p, ']'); if (next) { - p++; *next = 0; - d = parse_custom(p, d); - p = next + 1; + d = parse_custom(p + 1, d); + p = next; } } else { d[0] = '?'; -- 2.47.3