Revision 62dd234f

b/qemu-malloc.c
60 60
    ptr = qemu_malloc(len + 1);
61 61
    if (!ptr)
62 62
        return NULL;
63
    pstrcpy(ptr, len, str);
63
    pstrcpy(ptr, len + 1, str);
64 64
    return ptr;
65 65
}

Also available in: Unified diff