Logger forgot to NULL terminate strings from stdin.
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 2190640..3d02979 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -130,6 +130,7 @@
 		while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
 			buf[i++] = c;
 		}
+		buf[i++] = '\0';
 		message = buf;
 	} else {
 		len = 1; /* for the '\0' */
@@ -147,7 +148,6 @@
 	openlog(name, option, (pri | LOG_FACMASK));
 	syslog(pri, "%s", message);
 	closelog();
-
 	return EXIT_SUCCESS;
 }