Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarThread_unix.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-30 06:34:01 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-30 06:34:01 +1000
commit76089ac665f21d88d5d0a841eab91aeed6b82ce9 (patch)
tree78a47ff1bd3421f569608c76121e7fa5e6f2e587 /source/core/StarThread_unix.cpp
parentcf799aab34e837ba530c458565e9d15dd3d92909 (diff)
fix snprintf using fmt syntax
Diffstat (limited to 'source/core/StarThread_unix.cpp')
-rw-r--r--source/core/StarThread_unix.cpp4
1 files changed, 2 insertions, 2 deletions
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);