Fix sscanf cipher string and avoid warning wih -fsanitize=address.
authorMilan Broz <gmazyland@gmail.com>
Tue, 23 Jul 2013 20:07:13 +0000 (22:07 +0200)
committerMilan Broz <gmazyland@gmail.com>
Tue, 23 Jul 2013 20:07:13 +0000 (22:07 +0200)
Code need to count terminating zero.

lib/utils_crypt.h

index 3026a7d..22bd901 100644 (file)
@@ -26,7 +26,7 @@
 #include <unistd.h>
 
 #define MAX_CIPHER_LEN         32
-#define MAX_CIPHER_LEN_STR     "32"
+#define MAX_CIPHER_LEN_STR     "31"
 #define MAX_KEYFILES           32
 
 struct crypt_device;