mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
log: fix message prefix truncation
Restore the 29-character prefix limit that commit
e907535ab9
("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…
Reference in New Issue
Block a user