Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 257485 | Differences between
and this patch

Collapse All | Expand All

(-)/var/tmp/portage/app-emulation/xen-tools-3.3.0/work/xen-3.3.0/tools/libxc/xc_dom_x86.c (-2 / +2 lines)
Lines 418-424 Link Here
418
    xc_dom_printf("%s: called\n", __FUNCTION__);
418
    xc_dom_printf("%s: called\n", __FUNCTION__);
419
419
420
    memset(start_info, 0, sizeof(*start_info));
420
    memset(start_info, 0, sizeof(*start_info));
421
    snprintf(start_info->magic, sizeof(start_info->magic), dom->guest_type);
421
    snprintf(start_info->magic, sizeof(start_info->magic), "%s", dom->guest_type);
422
    start_info->nr_pages = dom->total_pages;
422
    start_info->nr_pages = dom->total_pages;
423
    start_info->shared_info = shinfo << PAGE_SHIFT_X86;
423
    start_info->shared_info = shinfo << PAGE_SHIFT_X86;
424
    start_info->pt_base = dom->pgtables_seg.vstart;
424
    start_info->pt_base = dom->pgtables_seg.vstart;
Lines 457-463 Link Here
457
    xc_dom_printf("%s: called\n", __FUNCTION__);
457
    xc_dom_printf("%s: called\n", __FUNCTION__);
458
458
459
    memset(start_info, 0, sizeof(*start_info));
459
    memset(start_info, 0, sizeof(*start_info));
460
    snprintf(start_info->magic, sizeof(start_info->magic), dom->guest_type);
460
    snprintf(start_info->magic, sizeof(start_info->magic), "%s", dom->guest_type);
461
    start_info->nr_pages = dom->total_pages;
461
    start_info->nr_pages = dom->total_pages;
462
    start_info->shared_info = shinfo << PAGE_SHIFT_X86;
462
    start_info->shared_info = shinfo << PAGE_SHIFT_X86;
463
    start_info->pt_base = dom->pgtables_seg.vstart;
463
    start_info->pt_base = dom->pgtables_seg.vstart;

Return to bug 257485