From 13f993438afc604e27e19252c467af07956e1034 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 12 Jul 2007 23:34:41 +0000 Subject: [PATCH] Missed a sprintf->snprintf switch git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19706 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/mk_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb4/mk_auth.c b/src/lib/krb4/mk_auth.c index cf85ea2f8..e09e90076 100644 --- a/src/lib/krb4/mk_auth.c +++ b/src/lib/krb4/mk_auth.c @@ -159,7 +159,7 @@ krb_mk_auth(options, ticket, service, inst, realm, checksum, version, buf) #ifdef ATHENA_COMPAT /* this is only for compatibility with old servers */ if (options & KOPT_DO_OLDSTYLE) { - (void) sprintf(buf->dat,"%d ",ticket->length); + (void) snprintf(buf->dat, sizeof(buf->dat), "%d ",ticket->length); (void) write(fd, buf, strlen(buf)); (void) write(fd, (char *) ticket->dat, ticket->length); return(rem); -- 2.26.2