From: Toni Wilen Date: Sat, 9 May 2020 16:58:55 +0000 (+0300) Subject: Fix [] parsing. X-Git-Tag: 4400~49 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=b5467a969614d570616c2311c2098771f43faf07;p=francis%2Fwinuae.git Fix [] parsing. --- 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] = '?';