]> Pileus Git - ~andy/fetchmail/blobdiff - kerberos.c
Minor bug fixes for socket.c
[~andy/fetchmail] / kerberos.c
index a57616a8c72b245af888f6c967df8b80a7ba3bee..141c9e3a390fee3776c0a50e64f1a6ceb3bb075f 100644 (file)
@@ -32,7 +32,7 @@ typedef       long    int32;
 #error Cannot deduce a 32-bit-type
 #endif
 
-int do_rfc1731(int sock, char *command, char *truename)
+int do_rfc1731(int sock, const char *command, const char *truename)
 /* authenticate as per RFC1731 -- note 32-bit integer requirement here */
 {
     int result = 0, len;
@@ -249,7 +249,7 @@ int do_rfc1731(int sock, char *command, char *truename)
 
     /* ship down the response, accept the server's error/ok indication */
     suppress_tags = TRUE;
-    result = gen_transact(sock, buf1, strlen(buf1));
+    result = gen_transact(sock, "%s", buf1);
     suppress_tags = FALSE;
     if (result)
        return(result);