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:
Sami Kerola 2017-03-05 20:52:22 +00:00 committed by Karel Zak
parent 08cce2e1cc
commit c88f7aee8f
1 changed files with 1 additions and 1 deletions

View File

@ -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,