]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 29 Mar 2002 11:38:42 +0000 (11:38 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 29 Mar 2002 11:38:42 +0000 (11:38 +0000)
src/cli.c

index 097fa5afe4c75bc1f0e5d396038c7ddbbc3349aa..72d289e44f194129888647dd4bfd4c4c347a5c14 100644 (file)
--- 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));