mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
log: Add termination to log level
This commit is contained in:
@@ -602,6 +602,7 @@ static void show_log_level(char buf[OPT_SHOW_LEN], const struct log *log)
|
||||
else
|
||||
l = DEFAULT_LOGLEVEL;
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user