Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
vga_reset(s);
- s->vram_ptr = qemu_malloc(vga_ram_size);
+ s->vram_ptr = qemu_mallocz(vga_ram_size);
s->vram_mfns = NULL;
xen_vga_state = s;
static void vga_save_dpy_resize(DisplayState *s, int w, int h)
{
s->linesize = w * 4;
- s->data = qemu_malloc(h * s->linesize);
+ s->data = qemu_mallocz(h * s->linesize);
vga_save_w = w;
vga_save_h = h;
}
}
/* Set raw attributes on the pty. */
+ tcgetattr(slave_fd, &tty);
cfmakeraw(&tty);
tcsetattr(slave_fd, TCSAFLUSH, &tty);
close(slave_fd);