From 527214c7ee648cccbe4abbb11bde298b7b52141b Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Mon, 16 May 2022 09:44:30 +0100 Subject: Label file Format 0 explicitly as Format 0 --- src/metaentry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/metaentry.c') diff --git a/src/metaentry.c b/src/metaentry.c index fe1c6d1..a26c764 100644 --- a/src/metaentry.c +++ b/src/metaentry.c @@ -422,7 +422,7 @@ mentries_tofile(const struct metahash *mhash, const char *path) } write_binary_string(SIGNATURE, SIGNATURELEN, to); - write_binary_string(VERSION, VERSIONLEN, to); + write_binary_string(VERSION_0, VERSIONLEN, to); for (key = 0; key < HASH_INDEXES; key++) { for (mentry = mhash->bucket[key]; mentry; mentry = mentry->next) { @@ -494,7 +494,7 @@ mentries_fromfile(struct metahash **mhash, const char *path) } ptr += SIGNATURELEN; - if (strncmp(ptr, VERSION, VERSIONLEN)) { + if (strncmp(ptr, VERSION_0, VERSIONLEN)) { msg(MSG_CRITICAL, "Invalid version of file %s\n", path); goto out; } -- cgit v1.2.1