X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kerberos.c;h=141c9e3a390fee3776c0a50e64f1a6ceb3bb075f;hb=e4dd196b137223195739b9e0f50ec2a8a02b3534;hp=a57616a8c72b245af888f6c967df8b80a7ba3bee;hpb=ac6ed0c6e445cc654f0b3b59dff38ea3b3f1ec0e;p=~andy%2Ffetchmail diff --git a/kerberos.c b/kerberos.c index a57616a8..141c9e3a 100644 --- a/kerberos.c +++ b/kerberos.c @@ -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);