  
          syslog_skip_date((char**) &buf);
          syslog_parse_identifier(&buf, &identifier, &pid);
-@@ -352,6 +464,7 @@ void server_process_syslog_message(
- 
-         sprintf(syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK);
+@@ -357,6 +469,7 @@ void server_process_syslog_message(
+ 
+         xsprintf(syslog_priority, "PRIORITY=%i", priority & LOG_PRIMASK);
          IOVEC_SET_STRING(iovec[n++], syslog_priority);
 +        sm.priority = priority;
  
          if (priority & LOG_FACMASK) {
-                 sprintf(syslog_facility, "SYSLOG_FACILITY=%i", LOG_FAC(priority));
-@@ -362,19 +475,44 @@ void server_process_syslog_message(
+                 xsprintf(syslog_facility, "SYSLOG_FACILITY=%i", LOG_FAC(priority));
+@@ -367,19 +480,44 @@ void server_process_syslog_message(
                  syslog_identifier = strjoina("SYSLOG_IDENTIFIER=", identifier);
                  if (syslog_identifier)
                          IOVEC_SET_STRING(iovec[n++], syslog_identifier);

 
                 if (s->forward_to_kmsg)
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index fa2e9b9..ce5543f 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -44,6 +44,7 @@
 #include "conf-parser.h"
 #include "selinux-util.h"
 #include "acl-util.h"
+#include "in-addr-util.h"
 #include "formats-util.h"
 #include "process-util.h"
 #include "hostname-util.h"
@@ -1316,6 +1317,12 @@ static int server_parse_proc_cmdline(Server *s) {
                                 log_warning("Failed to parse forward to syslog switch %s. Ignoring.", word + 35);
                         else
                                 s->forward_to_syslog = r;

         unsigned n_forward_syslog_missed;
         usec_t last_warn_forward_syslog_missed;
 
@@ -165,6 +170,13 @@ const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned len
 
 int config_parse_storage(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
 
