diff options
author | 2019-11-25 03:24:12 +1100 | |
---|---|---|
committer | 2019-11-25 03:24:12 +1100 | |
commit | 9525108f78153c049b79510bdb64336c2ebdcb87 (patch) | |
tree | e8402791ee97b14fc225f98e69263a98774ea8e4 /src/lib/util/corealloc.cpp | |
parent | d2f3d029081122bd21146275317de88d69302e89 (diff) |
helps to git add before git commit (nw)
Diffstat (limited to 'src/lib/util/corealloc.cpp')
-rw-r--r-- | src/lib/util/corealloc.cpp | 2 |
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); |