From: Nikos Mavrogiannopoulos Date: Sun, 11 Jul 2010 07:50:24 +0000 (+0200) Subject: gnutls-serv: Do not print CR/LF if received, but instead print LF only. X-Git-Tag: gnutls_2_11_3~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=389aee36fe8e454e44b0dfd588e22f1494be1961;p=thirdparty%2Fgnutls.git gnutls-serv: Do not print CR/LF if received, but instead print LF only. --- diff --git a/src/serv.c b/src/serv.c index eb7b892ab7..a6ed9c5a90 100644 --- a/src/serv.c +++ b/src/serv.c @@ -735,6 +735,24 @@ listen_socket (const char *name, int listen_port) return 0; } +/* strips \r\n from the end of the string + */ +static void strip (char* data) +{ +int i; +int len = strlen(data); + + for (i=0;i