diff --git a/samples/vboxwrapper/vbox.cpp b/samples/vboxwrapper/vbox.cpp index 947671bd7d..582f5186ee 100644 --- a/samples/vboxwrapper/vbox.cpp +++ b/samples/vboxwrapper/vbox.cpp @@ -306,7 +306,7 @@ bool VBOX_VM::is_running() { if (vbm_popen(command, output) == 0) { vmstate_location = output.find("VMState=\""); if (vmstate_location != string::npos) { - vmstate_location += 9; + vmstate_location += 10; vmstate_length = output.find("\"", vmstate_location); vmstate = output.substr(vmstate_location, vmstate_length);