From 19dc52bcc681165a99e50c6b4d68af2f88d1645c Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 20 Aug 2010 10:45:10 +0200 Subject: Format string fix: use %s for gen_send/gen_transact. --- gssapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gssapi.c') diff --git a/gssapi.c b/gssapi.c index 37c5a6af..1784de55 100644 --- a/gssapi.c +++ b/gssapi.c @@ -117,7 +117,7 @@ int do_gssauth(int sock, const char *command, const char *service, gss_release_buffer(&min_stat, &send_token); suppress_tags = TRUE; - gen_send(sock, buf1, strlen(buf1)); + gen_send(sock, "%s", buf1); suppress_tags = FALSE; if (maj_stat == GSS_S_CONTINUE_NEEDED) { @@ -190,7 +190,7 @@ int do_gssauth(int sock, const char *command, const char *service, to64frombits(buf1, send_token.value, send_token.length); suppress_tags = TRUE; - result = gen_transact(sock, buf1, strlen(buf1)); + result = gen_transact(sock, "%s", buf1); suppress_tags = FALSE; /* flush security context */ -- cgit v1.2.3