diff options
Diffstat (limited to 'src/daemontools-extras/lolsyslog.c')
-rw-r--r-- | src/daemontools-extras/lolsyslog.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ; |