From 76089ac665f21d88d5d0a841eab91aeed6b82ce9 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 30 Jun 2023 06:34:01 +1000 Subject: fix snprintf using fmt syntax --- source/core/StarThread_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/core/StarThread_unix.cpp') diff --git a/source/core/StarThread_unix.cpp b/source/core/StarThread_unix.cpp index 22fd10d..6fcb0f9 100644 --- a/source/core/StarThread_unix.cpp +++ b/source/core/StarThread_unix.cpp @@ -31,7 +31,7 @@ struct ThreadImpl { #ifdef STAR_SYSTEM_MACOS // ensure the name is under the max allowed char tname[MAX_THREAD_NAMELEN]; - snprintf(tname, sizeof(tname), "{}", ptr->name.utf8Ptr()); + snprintf(tname, sizeof(tname), "%s", ptr->name.utf8Ptr()); pthread_setname_np(tname); #endif @@ -70,7 +70,7 @@ struct ThreadImpl { // ensure the name is under the max allowed char tname[MAX_THREAD_NAMELEN]; - snprintf(tname, sizeof(tname), "{}", name.utf8Ptr()); + snprintf(tname, sizeof(tname), "%s", name.utf8Ptr()); #ifdef STAR_SYSTEM_FREEBSD pthread_set_name_np(pthread, tname); -- cgit v1.2.3