1
0
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:
Zdenek Kabelac 2017-06-27 10:17:33 +02:00
parent e9c60f874e
commit e907535ab9

View File

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