diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index 52d3e3b4e8..a070a69265 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -307,7 +307,7 @@ bool VBOX_VM::is_running() { vmstate_location = output.find("VMState=\""); if (vmstate_location != string::npos) { vmstate_location += 9; - vmstate_length = output.find('\"', vmstate_location); + vmstate_length = output.find('"', vmstate_location); vmstate = output.substr(vmstate_location, vmstate_length); fprintf(