mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
log: Add termination to log level
This commit is contained in:
parent
47a7b4a55b
commit
83c31f548f
1 changed files with 2 additions and 1 deletions
|
@ -601,7 +601,8 @@ static void show_log_level(char buf[OPT_SHOW_LEN], const struct log *log)
|
|||
l = *log->lr->default_print_level;
|
||||
else
|
||||
l = DEFAULT_LOGLEVEL;
|
||||
strncpy(buf, log_level_name(l), OPT_SHOW_LEN-1);
|
||||
strncpy(buf, log_level_name(l), OPT_SHOW_LEN - 1);
|
||||
buf[OPT_SHOW_LEN - 1] = '\0';
|
||||
}
|
||||
|
||||
static char *arg_log_prefix(const char *arg, struct log *log)
|
||||
|
|
Loading…
Add table
Reference in a new issue