mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
coverity: use better function
This commit is contained in:
parent
e9c60f874e
commit
e907535ab9
@ -375,8 +375,8 @@ void fin_syslog(void)
|
||||
|
||||
void init_msg_prefix(const char *prefix)
|
||||
{
|
||||
strncpy(_msg_prefix, prefix, sizeof(_msg_prefix) - 1);
|
||||
_msg_prefix[sizeof(_msg_prefix) - 1] = '\0';
|
||||
if (prefix)
|
||||
dm_strncpy(_msg_prefix, prefix, sizeof(_msg_prefix) - 1);
|
||||
}
|
||||
|
||||
void init_indent(int indent)
|
||||
|
Loading…
Reference in New Issue
Block a user