From 7dd28708a1a378cea1e41292d41f94efabb5fd22 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Wed, 15 Jul 2020 15:12:43 +0000 Subject: [PATCH] Fix bug in qprofdiff. Fixes #4521. --- contrib/qprofdiff/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/qprofdiff/main.cpp b/contrib/qprofdiff/main.cpp index 9a78249c2..17b76081b 100644 --- a/contrib/qprofdiff/main.cpp +++ b/contrib/qprofdiff/main.cpp @@ -61,9 +61,9 @@ int parse(string const & filename, map & data) { if (line.substr(0, prefix_len) == prefix) { line = trim(line.substr(prefix_len)); size_t from = 0, ti = 0; - for (size_t inx = line.find(':', from); + for (size_t inx = line.find(" : ", from); inx != string::npos; - inx = line.find(':', from)) { + inx = line.find(" : ", from)) { tokens[ti] = trim(line.substr(from, inx-from)); from = inx+1; ti++;