diff options
author | Gabriel Dos Reis <GabrielDosReis@users.noreply.github.com> | 2022-07-24 14:28:01 -0700 |
---|---|---|
committer | Gabriel Dos Reis <GabrielDosReis@users.noreply.github.com> | 2022-07-24 14:28:01 -0700 |
commit | 46055e8504a54aa3280874fdd799d4060f561caa (patch) | |
tree | bb4f1ca95b589927c3aeb83dbbb584b16b564f3f /src/utils/storage.cxx | |
parent | d113f3f7ba119fecd9d946bced8d3dfe9456b933 (diff) | |
download | open-axiom-46055e8504a54aa3280874fdd799d4060f561caa.tar.gz |
Fix inverted arguments in call to `memset`.
Diffstat (limited to 'src/utils/storage.cxx')
-rw-r--r-- | src/utils/storage.cxx | 4 |
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 |