From 46055e8504a54aa3280874fdd799d4060f561caa Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Sun, 24 Jul 2022 14:28:01 -0700 Subject: Fix inverted arguments in call to `memset`. --- src/utils/storage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/storage.cxx b/src/utils/storage.cxx index 80cfea0d..98b0a27f 100644 --- a/src/utils/storage.cxx +++ b/src/utils/storage.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2010-2013, Gabriel Dos Reis. +// Copyright (C) 2010-2022, Gabriel Dos Reis. // All rights reserved. // // Redistribution and use in source and binary forms, with or without @@ -111,7 +111,7 @@ namespace OpenAxiom { Pointer p = os_allocate_read_write_raw_memory(nbytes); if (p == nullptr) throw SystemError("cannot acquire more memory"); - return memset(p, nbytes, 0); + return memset(p, 0, nbytes); } void -- cgit v1.2.3