From 69697535bfca47419333064758bc61a00eca0d79 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 4 Feb 2018 22:36:57 -0500 Subject: lm: Ensure log string is non-empty before checking back(). --- src/core/hle/service/lm/lm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle/service/lm') diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp index 2843e0e40..7ff9c37f3 100644 --- a/src/core/hle/service/lm/lm.cpp +++ b/src/core/hle/service/lm/lm.cpp @@ -125,7 +125,7 @@ private: if (line) { output += std::to_string(line) + ':'; } - if (output.back() == ':') { + if (output.length() > 0 && output.back() == ':') { output += ' '; } output += message; -- cgit v1.2.3