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);