aboutsummaryrefslogtreecommitdiffstats
path: root/gssapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gssapi.c')
-rw-r--r--gssapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gssapi.c b/gssapi.c
index 3525be85..ebc32e87 100644
--- a/gssapi.c
+++ b/gssapi.c
@@ -57,7 +57,7 @@ int do_gssauth(int sock, char *command, char *service, char *hostname, char *use
int result;
/* first things first: get an imap ticket for host */
- sprintf(buf1, "%s@%s", service, hostname);
+ snprintf(buf1, sizeof(buf1), "%s@%s", service, hostname);
request_buf.value = buf1;
request_buf.length = strlen(buf1) + 1;
maj_stat = gss_import_name(&min_stat, &request_buf, GSS_C_NT_HOSTBASED_SERVICE,