summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2013-07-23 22:07:13 +0200
committerMilan Broz <gmazyland@gmail.com>2013-07-23 22:07:13 +0200
commitcfeaaa02fc50f7cab28c91f78d0f2da809bc0be1 (patch)
tree6714c52af09493a9f1fdd68afe6c79094b3857e4
parentc5270f85d3c1440b2ee47178cdf8e7cb0b605186 (diff)
downloadcryptsetup-cfeaaa02fc50f7cab28c91f78d0f2da809bc0be1.tar.gz
cryptsetup-cfeaaa02fc50f7cab28c91f78d0f2da809bc0be1.tar.bz2
cryptsetup-cfeaaa02fc50f7cab28c91f78d0f2da809bc0be1.zip
Fix sscanf cipher string and avoid warning wih -fsanitize=address.
Code need to count terminating zero.
-rw-r--r--lib/utils_crypt.h2
1 files changed, 1 insertions, 1 deletions
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 <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;