aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/storage.cxx4
1 files 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