diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-05 16:24:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-12-05 16:24:46 +0000 |
commit | b4d6ebf474c8f4257cbe50ae1663ea58ab3b08c1 (patch) | |
tree | 79f912b49cfdf947aab650f1c2450f4483bb1d3f /src/libutil/cxx | |
parent | 15d023291bedb5cbd2634c05f79185ab6a358c6c (diff) | |
download | rspamd-b4d6ebf474c8f4257cbe50ae1663ea58ab3b08c1.tar.gz rspamd-b4d6ebf474c8f4257cbe50ae1663ea58ab3b08c1.zip |
[Project] Move the whole backend to C++
Easier to work further.
Diffstat (limited to 'src/libutil/cxx')
-rw-r--r-- | src/libutil/cxx/file_util.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/cxx/file_util.cxx b/src/libutil/cxx/file_util.cxx index 9baf062a5..2f031f076 100644 --- a/src/libutil/cxx/file_util.cxx +++ b/src/libutil/cxx/file_util.cxx @@ -1,11 +1,11 @@ -/*- - * Copyright 2022 Vsevolod Stakhov +/* + * Copyright 2023 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -319,7 +319,7 @@ auto random_fname(std::string_view extension) std::string out_fname{tmpdir}; out_fname += G_DIR_SEPARATOR_S; - unsigned char hexbuf[32]; + char hexbuf[32]; rspamd_random_hex(hexbuf, sizeof(hexbuf)); out_fname.append((const char *) hexbuf, sizeof(hexbuf)); if (!extension.empty()) { |