From cfeaaa02fc50f7cab28c91f78d0f2da809bc0be1 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 23 Jul 2013 22:07:13 +0200 Subject: Fix sscanf cipher string and avoid warning wih -fsanitize=address. Code need to count terminating zero. --- lib/utils_crypt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils_crypt.h b/lib/utils_crypt.h index 3026a7d..22bd901 100644 --- a/lib/utils_crypt.h +++ b/lib/utils_crypt.h @@ -26,7 +26,7 @@ #include #define MAX_CIPHER_LEN 32 -#define MAX_CIPHER_LEN_STR "32" +#define MAX_CIPHER_LEN_STR "31" #define MAX_KEYFILES 32 struct crypt_device; -- cgit v1.2.3