Explorar o código

increase syslog message limit from 256 to 1024

this addresses alpine linux issue #3692 and brings the syslog message
length limit in alignment with uclibc's implementation.
Rich Felker %!s(int64=10) %!d(string=hai) anos
pai
achega
3f65494a4c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/misc/syslog.c

+ 1 - 1
src/misc/syslog.c

@@ -81,7 +81,7 @@ static void _vsyslog(int priority, const char *message, va_list ap)
 	char timebuf[16];
 	time_t now;
 	struct tm tm;
-	char buf[256];
+	char buf[1024];
 	int errno_save = errno;
 	int pid;
 	int l, l2;