From 9525108f78153c049b79510bdb64336c2ebdcb87 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 25 Nov 2019 03:24:12 +1100 Subject: helps to git add before git commit (nw) --- src/lib/util/corealloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/corealloc.cpp b/src/lib/util/corealloc.cpp index e3b7a458dbf..789e8325204 100644 --- a/src/lib/util/corealloc.cpp +++ b/src/lib/util/corealloc.cpp @@ -14,7 +14,7 @@ std::uint8_t g_mame_new_prefill_byte(0xcd); void *operator new(std::size_t n) { - void *const result(std::malloc(sz)); + void *const result(std::malloc(n)); if (ptr) { std::fill_n(reinterpret_cast(ptr), n, g_mame_new_prefill_byte); -- cgit v1.2.3