diff options
Diffstat (limited to 'src/libstat/backends/cdb_backend.cxx')
-rw-r--r-- | src/libstat/backends/cdb_backend.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/backends/cdb_backend.cxx b/src/libstat/backends/cdb_backend.cxx index 7715e9b6b..eb86c6964 100644 --- a/src/libstat/backends/cdb_backend.cxx +++ b/src/libstat/backends/cdb_backend.cxx @@ -198,7 +198,7 @@ ro_backend::load_cdb() -> tl::expected<bool, std::string> /* Now get number of learns */ std::int64_t cdb_key; - static const char learn_spam_key[8] = "lrnspam", learn_ham_key[8] = "lrnham"; + static const char learn_spam_key[9] = "_lrnspam", learn_ham_key[9] = "_lrnham_"; auto check_key = [&](const char *key, std::uint64_t &target) -> tl::expected<bool, std::string> { memcpy((void *)&cdb_key, key, sizeof(cdb_key)); |