]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Simplify cc replacement.
authorToni Wilen <twilen@winuae.net>
Mon, 25 Apr 2022 15:43:11 +0000 (18:43 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 25 Apr 2022 15:43:11 +0000 (18:43 +0300)
disasm.cpp

index 76acbe5126ff781a82a19ac6651d94645eb39529..9c3587f89e3bc08ee03ae1ea972c6db0d8dcb615 100644 (file)
@@ -1959,7 +1959,7 @@ uae_u32 m68k_disasm_2(TCHAR *buf, int bufsize, uaecptr pc, uae_u16 *bufpc, int b
                                        _tcscpy(ccpt, fpccnames[extra & 0x1f]);
                                }
                        } else {
-                               _tcsncpy(ccpt, ccnames[dp->cc], _tcslen(ccnames[dp->cc]));
+                               _tcscpy(ccpt, ccnames[dp->cc]);
                                if (dp->mnemo == i_Bcc && dp->cc == 0) {
                                        _tcscpy(ccpt, _T("RA")); // BT -> BRA
                                }