summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2019-11-25 03:24:12 +1100
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2019-11-25 03:24:12 +1100
commit9525108f78153c049b79510bdb64336c2ebdcb87 (patch)
treee8402791ee97b14fc225f98e69263a98774ea8e4 /src/lib
parentd2f3d029081122bd21146275317de88d69302e89 (diff)
helps to git add before git commit (nw)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/corealloc.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::uint8_t volatile *>(ptr), n, g_mame_new_prefill_byte);