mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-24 17:57:48 +03:00
log: fix message prefix truncation
Restore the 29-character prefix limit that commit e907535ab977ea29319aeb015cec6c06729f7ce4 ("coverity: use better function") accidentally reduced to 28 characters.
This commit is contained in:
parent
3fe67217d4
commit
7f1ec681d6
@ -376,7 +376,7 @@ void fin_syslog(void)
|
||||
void init_msg_prefix(const char *prefix)
|
||||
{
|
||||
if (prefix)
|
||||
dm_strncpy(_msg_prefix, prefix, sizeof(_msg_prefix) - 1);
|
||||
dm_strncpy(_msg_prefix, prefix, sizeof(_msg_prefix));
|
||||
}
|
||||
|
||||
void init_indent(int indent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user