From 54a2715e8fd6083b102896293b824c7d49d20e90 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 28 Aug 2015 16:01:48 -0400 Subject: [PATCH] VBOX: Possible fix for endless loop. --- samples/vboxwrapper/vbox_common.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/vboxwrapper/vbox_common.cpp b/samples/vboxwrapper/vbox_common.cpp index 981a06a54b..3b4e89b75a 100644 --- a/samples/vboxwrapper/vbox_common.cpp +++ b/samples/vboxwrapper/vbox_common.cpp @@ -607,8 +607,7 @@ void VBOX_BASE::sanitize_output(std::string& output) { iter = output.begin(); while (iter != output.end()) { if (*iter == '%') { - iter = output.insert(iter, '%'); - ++iter; + iter = output.insert(iter+1, '%'); } else { ++iter; }