]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Allocate more space for diagrom name strings.
authorToni Wilen <twilen@winuae.net>
Fri, 27 Feb 2015 16:18:13 +0000 (18:18 +0200)
committerToni Wilen <twilen@winuae.net>
Fri, 27 Feb 2015 16:18:13 +0000 (18:18 +0200)
debug.cpp

index c6de5568d13523dbf98e528dc0f192a1f33c3fae..51fb97145928d1be25e6e8249b3b46502323f60c 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -3377,7 +3377,7 @@ static void show_exec_lists (TCHAR *t)
                                        get_long_debug(list + 16 + 6), rom_vector,
                                        get_word_debug(list + 16 + 4), get_byte_debug(list + 16 + 1));
                                if ((type & 0x10)) {
-                                       uae_u8 diagarea[32];
+                                       uae_u8 diagarea[256];
                                        uae_u16 nameoffset;
                                        uaecptr rom = addr + rom_vector;
                                        uae_u8 config = get_byte_debug(rom);
@@ -3392,8 +3392,8 @@ static void show_exec_lists (TCHAR *t)
                                                (diagarea[10] << 8) | diagarea[11],
                                                (diagarea[12] << 8) | diagarea[13]);
                                        if (nameoffset != 0 && nameoffset != 0xffff) {
-                                               copyromdata(config, rom, nameoffset, diagarea, 32);
-                                               diagarea[31] = 0;
+                                               copyromdata(config, rom, nameoffset, diagarea, 256);
+                                               diagarea[256] = 0;
                                                TCHAR *str = au((char*)diagarea);
                                                console_out_f(_T(" '%s'\n"), str);
                                                xfree(str);