Commit 7de7b608 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 7265c2b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)