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>
This commit is contained in:
parent
08cce2e1cc
commit
c88f7aee8f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue