summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/logging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/util/logging.cpp b/src/mbgl/util/logging.cpp
index d322bd3670..fd3f14825d 100644
--- a/src/mbgl/util/logging.cpp
+++ b/src/mbgl/util/logging.cpp
@@ -35,7 +35,7 @@ void Log::record(EventSeverity severity, Event event, const char* format, ...) {
vsnprintf(msg, sizeof(msg), format, args);
va_end(args);
- record(severity, event, -1, msg);
+ record(severity, event, -1, std::string{ msg });
}
void Log::record(EventSeverity severity, Event event, int64_t code, const char* format, ...) {