# HG changeset patch # User Michael Pavone # Date 1703398303 28800 # Node ID 68eba54b60f7d071b40e3413aa9dc5e6e8b610ed # Parent 8445e814d49540ef9ffd71a922042262c003252b Oops, wrong type in sizeof for m68k_add_watchpoint diff -r 8445e814d495 -r 68eba54b60f7 m68k_core.c --- a/m68k_core.c Sat Dec 23 22:04:27 2023 -0800 +++ b/m68k_core.c Sat Dec 23 22:11:43 2023 -0800 @@ -933,7 +933,7 @@ m68k_enable_watchpoints(context); if (context->wp_storage == context->num_watchpoints) { context->wp_storage = context->wp_storage ? context->wp_storage * 2 : 4; - context->watchpoints = realloc(context->watchpoints, context->wp_storage * sizeof(m68k_breakpoint)); + context->watchpoints = realloc(context->watchpoints, context->wp_storage * sizeof(m68k_watchpoint)); } const memmap_chunk *chunk = find_map_chunk(address, &context->options->gen, 0, NULL); context->watchpoints[context->num_watchpoints++] = (m68k_watchpoint){