From 6197a3cee4e375b8248df0bc2ac173ea68982f20 Mon Sep 17 00:00:00 2001 From: Edo Date: Wed, 24 Aug 2022 14:15:04 +0200 Subject: [PATCH] [Utils] Correct mistake in code (#455) --- src/Utils/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils/Utils.cpp b/src/Utils/Utils.cpp index 520faa9d..9719e397 100644 --- a/src/Utils/Utils.cpp +++ b/src/Utils/Utils.cpp @@ -18,9 +18,9 @@ namespace Utils std::string ParseChallenge(const std::string& data) { - auto pos = data.find_first_of("\n "); + const auto pos = data.find_first_of("\n "); if (pos == std::string::npos) return data; - return data.substr(0, pos).data(); + return data.substr(0, pos); } void OutputDebugLastError()