From bb841f02fb06148bba422e92a9b1a6b46ab3bde3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 18 Aug 2023 18:40:08 -0700 Subject: Use a string instead of a c_str for a string_view --- alc/alc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alc/alc.cpp b/alc/alc.cpp index 6163e004..9dc99a5d 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -366,7 +366,7 @@ void alc_initconfig(void) if(logf) gLogFile = logf; else { - auto u8name = wstr_to_utf8(logfile->c_str()); + auto u8name = wstr_to_utf8(*logfile); ERR("Failed to open log file '%s'\n", u8name.c_str()); } } -- cgit v1.2.3