• P
    qemu: Fix off-by-one error while unescaping monitor strings · 0f4660c8
    Peter Krempa 提交于
    While unescaping the commands the commands passed through to the monitor
    function qemuMonitorUnescapeArg() initialized lenght of the input string
    to strlen()+1 which is fine for alloc but not for iteration of the
    string.
    
    This patch fixes the off-by-one error and drops the pointless check for
    a single trailing slash that is automaticaly handled by the default
    branch of switch.
    0f4660c8
qemu_monitor.c 77.4 KB