r2d: fix build on mingw

Comment near strncpy explains kernel_cmdline does
not need to be 0-terminated.

Accordingly mark it as QEMU_NONSTRING.

Without this, gcc warns:
    'strncpy' specified bound 256 equals destination size

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Michael S. Tsirkin 2019-02-01 17:57:42 -05:00
parent 7265c2b971
commit 7de7b6087e
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ static struct QEMU_PACKED
char pad[232];
char kernel_cmdline[256];
char kernel_cmdline[256] QEMU_NONSTRING;
} boot_params;
static void r2d_init(MachineState *machine)