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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);