diff --git a/stubdom/grub/mini-os.c b/stubdom/grub/mini-os.c index 64ab962fee..9d4bcc76d5 100644 --- a/stubdom/grub/mini-os.c +++ b/stubdom/grub/mini-os.c @@ -333,7 +333,7 @@ struct frame { static void minios_transmit (struct nic *nic, const char *d, unsigned int t, unsigned int s, const char *p) { - struct frame *frame = alloca(sizeof(frame) + s); + struct frame *frame = alloca(sizeof(*frame) + s); memcpy(frame->dest, d, ETH_ALEN); memcpy(frame->src, nic->node_addr, ETH_ALEN);