Skip to content

Commit

Permalink
cyrusdb: fix twom detection
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Jan 21, 2025
1 parent 256e887 commit c5a35d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cyrusdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c5a35d0

Please sign in to comment.