From c5a35d0c50d4d6afdeeb36d3d5f1f37a45fa4f50 Mon Sep 17 00:00:00 2001 From: Bron Gondwana Date: Wed, 22 Jan 2025 09:10:35 +1100 Subject: [PATCH] cyrusdb: fix twom detection --- lib/cyrusdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cyrusdb.c b/lib/cyrusdb.c index bc0f8828c0..f572131491 100644 --- a/lib/cyrusdb.c +++ b/lib/cyrusdb.c @@ -657,7 +657,7 @@ EXPORTED const char *cyrusdb_detect(const char *fname) if (!strncmp(buf, "\241\002\213\015twoskip file\0\0\0\0", 16)) return "twoskip"; - if (!strncmp(buf, "\241\002\213\015twomfile", 12)) + if (!strncmp(buf, "\241\002\213\015twomfile\0\0\0\0", 16)) return "twom"; /* unable to detect SQLite databases or flat files explicitly here */