1
0
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:
Alasdair G Kergon 2017-06-27 12:41:59 +01:00
parent 3fe67217d4
commit 7f1ec681d6

View File

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