aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Dos Reis <GabrielDosReis@users.noreply.github.com>2022-07-24 14:33:39 -0700
committerGitHub <noreply@github.com>2022-07-24 14:33:39 -0700
commit1df8894e0ac79c0f75139cb2701b3595989f8db8 (patch)
treebb4f1ca95b589927c3aeb83dbbb584b16b564f3f
parentd113f3f7ba119fecd9d946bced8d3dfe9456b933 (diff)
parent46055e8504a54aa3280874fdd799d4060f561caa (diff)
downloadopen-axiom-1df8894e0ac79c0f75139cb2701b3595989f8db8.tar.gz
Merge pull request #8 from GabrielDosReis/gdr/fix-memset-inverted-args
Fix inverted arguments in call to `memset`.
-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