mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
strmake_buf(X,Y) helper, equivalent to strmake(X,Y,sizeof(X)-1)
with a bit of lame protection against abuse.
This commit is contained in:
@@ -446,7 +446,7 @@ const char *my_thread_name(void)
|
||||
{
|
||||
my_thread_id id= my_thread_dbug_id();
|
||||
sprintf(name_buff,"T@%lu", (ulong) id);
|
||||
strmake(tmp->name,name_buff,THREAD_NAME_SIZE);
|
||||
strmake_buf(tmp->name, name_buff);
|
||||
}
|
||||
return tmp->name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user