Fix sscanf cipher string and avoid warning wih -fsanitize=address.

Code need to count terminating zero.
This commit is contained in:
Milan Broz
2013-07-23 22:07:13 +02:00
parent c5270f85d3
commit cfeaaa02fc

View File

@@ -26,7 +26,7 @@
#include <unistd.h> #include <unistd.h>
#define MAX_CIPHER_LEN 32 #define MAX_CIPHER_LEN 32
#define MAX_CIPHER_LEN_STR "32" #define MAX_CIPHER_LEN_STR "31"
#define MAX_KEYFILES 32 #define MAX_KEYFILES 32
struct crypt_device; struct crypt_device;