X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=src%2Fconnection.c;h=54752aceae38a547dd80f5bcacd7e549ac459c6e;hp=e675a825c72b15297af939bb118093c3c0f2bb9e;hb=e4f2d047eeb0750c7126bd6e3300cd4eab996437;hpb=6dc3fa355759e49319ce0d6aad75e488c4a16247 diff --git a/src/connection.c b/src/connection.c index e675a82..54752ac 100644 --- a/src/connection.c +++ b/src/connection.c @@ -40,7 +40,8 @@ /* Format string used to send HTTP/1.0 error responses to the client. * * %s is used 5 times, first is the error code, then additional headers, next - * two are the error code (no %n$s!), the last is the message. */ + * two are the error code (no %n$s which is not in C98!), the last is the + * message. */ #define HTTP_RESPONSE_FORMAT "HTTP/1.0 %s\r\n\ Content-Type: text/html; charset=US-ASCII\r\n\ %s\r\n\ @@ -767,7 +768,7 @@ static int read_from_write_to_tls(gnutls_session_t from, size_t buffer_size) { ssize_t size_read; ssize_t size_written; - char buffer[16384]; + char buffer[16384]; /* GnuTLS default maximum */ if (buffer_size > sizeof(buffer)) { LOG(WARNING, "read_from_write_to_tls(): reduced buffer size to %ld",