From: Nikos Mavrogiannopoulos Date: Fri, 29 Mar 2002 11:38:42 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls_0_4_0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8a99f6a0fc2a7420956b7936579dbdc5e9cc98d;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/src/cli.c b/src/cli.c index 097fa5afe4..72d289e44f 100644 --- a/src/cli.c +++ b/src/cli.c @@ -442,7 +442,8 @@ int main(int argc, char **argv) do { if ( crlf != 0) { char* b=strchr( buffer, '\n'); - strcpy( b, "\r\n"); + if (b!=NULL) + strcpy( b, "\r\n"); } ret = gnutls_record_send(state, buffer, strlen(buffer));