From: Ken Raeburn Date: Thu, 12 Jul 2007 23:34:41 +0000 (+0000) Subject: Missed a sprintf->snprintf switch X-Git-Tag: krb5-1.7-alpha1~1006 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13f993438afc604e27e19252c467af07956e1034;p=krb5.git Missed a sprintf->snprintf switch git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19706 dc483132-0cff-0310-8789-dd5450dbe970 --- 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);