diff options
author | Sven Göthel <[email protected]> | 2024-05-19 16:50:19 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-19 16:50:19 +0200 |
commit | 2180405e8b7b8c94f766b77415bd69b134271cc8 (patch) | |
tree | 32ea18612a8a2af82c026c72cf3ab8bae09fbf59 /test/test_fileutils01.cpp | |
parent | 4f4bc5a7e1719ffa1712154cf5f66eb7b2303f0b (diff) |
cleanup C++20: Use non-optimized new zero_bytes_sec() instead of ::bzero(), which is still the default impl.
Diffstat (limited to 'test/test_fileutils01.cpp')
-rw-r--r-- | test/test_fileutils01.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_fileutils01.cpp b/test/test_fileutils01.cpp index 9378f6e..4420753 100644 --- a/test/test_fileutils01.cpp +++ b/test/test_fileutils01.cpp @@ -22,9 +22,11 @@ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "jau/file_util.hpp" #include "test_fileutils_copy_r_p.hpp" +#include <jau/file_util.hpp> +#include <jau/secmem.hpp> + extern "C" { #include <sys/types.h> #include <sys/stat.h> @@ -985,7 +987,7 @@ class TestFileUtil01 : TestFileUtilBase { REQUIRE( !infile.fail() ); uint8_t buffer[pipe_msg_count * pipe_msg_len + 512]; - ::bzero(buffer, sizeof(buffer)); + jau::zero_bytes_sec(buffer, sizeof(buffer)); size_t total_read = 0; { while( infile.good() && total_read < sizeof(buffer) ) { |