From 08993d3e1e221a9ac7887b412fccdcbbfd27fb75 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 31 Jul 2026 14:01:08 +1000 Subject: [PATCH] [client] core: use portable alloc_sprintf instead of asprintf --- client/src/core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index df4fcf24..fef44c54 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -29,6 +29,7 @@ #include "common/debug.h" #include "common/array.h" #include "common/proctitle.h" +#include "common/stringutils.h" #include "common/version.h" #include @@ -765,8 +766,8 @@ void core_setTitle(const char * title) return; char * string; - if (asprintf(&string, "Looking Glass Client %s%s%s", BUILD_VERSION, - title && *title ? ": " : "", title ? title : "") >= 0) + if (alloc_sprintf(&string, "Looking Glass Client %s%s%s", BUILD_VERSION, + title && *title ? ": " : "", title ? title : "") >= 0) { lgSetProcessTitle(string); free(string);