Fix sscanf cipher string and avoid warning wih -fsanitize=address.
[platform/upstream/cryptsetup.git] / lib / utils_crypt.h
index 48c8198..22bd901 100644 (file)
@@ -7,7 +7,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #define _UTILS_CRYPT_H
 
 #include <unistd.h>
-#include "config.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;