summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorSami Kerola2017-03-05 21:52:22 +0100
committerKarel Zak2017-03-13 14:48:10 +0100
commitc88f7aee8f1c0cef2db1cfa057e0ffeaf98f0de1 (patch)
treeae0eb36cfb5ae0580c06347e19c2de5da3cf0660 /libblkid
parentlibmount: fix use of preprocessor identifier (diff)
downloadkernel-qcow2-util-linux-c88f7aee8f1c0cef2db1cfa057e0ffeaf98f0de1.tar.gz
kernel-qcow2-util-linux-c88f7aee8f1c0cef2db1cfa057e0ffeaf98f0de1.tar.xz
kernel-qcow2-util-linux-c88f7aee8f1c0cef2db1cfa057e0ffeaf98f0de1.zip
libblkid: avoid overflow when initializing array
libblkid/src/superblocks/drbdmanage.c:38:42: warning: too long initializer-string for array of char(no space for nul char) Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/drbdmanage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/drbdmanage.c b/libblkid/src/superblocks/drbdmanage.c
index 48bf1dabf..b45f89bc8 100644
--- a/libblkid/src/superblocks/drbdmanage.c
+++ b/libblkid/src/superblocks/drbdmanage.c
@@ -35,7 +35,7 @@ struct drbdmanage_pers {
} __attribute__ ((packed));
-static const char persistence_magic[4] = "\x1a\xdb\x98\xa2";
+static const char persistence_magic[4] = { '\x1a', '\xdb', '\x98', '\xa2' };
static int probe_drbdmanage(blkid_probe pr,