bar: don’t prepend ‘mod:’ to module thread titles

This commit is contained in:
Daniel Eklöf 2021-06-20 21:21:59 +02:00
parent ed2b8c4874
commit 371bfb4065
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -220,7 +220,7 @@ set_module_thread_name(thrd_t id, struct module *mod)
{ {
char title[16]; char title[16];
if (mod->description != NULL) if (mod->description != NULL)
snprintf(title, sizeof(title), "mod:%s", mod->description(mod)); strncpy(title, mod->description(mod), sizeof(title));
else else
strncpy(title, "mod:<unknown>", sizeof(title)); strncpy(title, "mod:<unknown>", sizeof(title));