From ff147a1493759c0662912564c0ecd26f59590322 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 8 Jun 2022 09:59:01 +0000 Subject: Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0 Signed-off-by: Laurent Bercot --- src/daemontools-extras/lolsyslog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/daemontools-extras/lolsyslog.c') diff --git a/src/daemontools-extras/lolsyslog.c b/src/daemontools-extras/lolsyslog.c index a397dae..e62bdef 100644 --- a/src/daemontools-extras/lolsyslog.c +++ b/src/daemontools-extras/lolsyslog.c @@ -82,8 +82,9 @@ size_t lolsyslog_string (char *out, char const *in) out = stpcpy(out, p->c_name ? p->c_name : "unknown") ; *out++ = '.' ; + p = prioritynames ; fp = LOG_PRI(fpr) ; - for (p = prioritynames ; p->c_name ; p++) if (p->c_val == fp) break ; + for (; p->c_name ; p++) if (p->c_val == fp) break ; out = stpcpy(out, p->c_name ? p->c_name : "unknown") ; *out++ = ':' ; *out++ = ' ' ; *out++ = 0 ; return i+2 ; -- cgit v1.2.3