changeset 2399:68eba54b60f7

Oops, wrong type in sizeof for m68k_add_watchpoint
author Michael Pavone <pavone@retrodev.com>
date Sat, 23 Dec 2023 22:11:43 -0800
parents 8445e814d495
children c97609fe8315
files m68k_core.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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){