diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 18:49:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-09-16 18:49:09 +0000 |
commit | 02748c634c0f2a48d333e7a2d406e5c71f0d99d5 (patch) | |
tree | 9e39387bdac863b493ec3e1814653b685941d9d9 /kerberosIV/krb/klog.c | |
parent | 0eeac555bd0aef9e6d8326dd8e1ae341f7239a98 (diff) |
sprintf -> snprintf paranoia
Diffstat (limited to 'kerberosIV/krb/klog.c')
-rw-r--r-- | kerberosIV/krb/klog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kerberosIV/krb/klog.c b/kerberosIV/krb/klog.c index 7cbd7654fae..5e2768f279d 100644 --- a/kerberosIV/krb/klog.c +++ b/kerberosIV/krb/klog.c @@ -90,7 +90,7 @@ klog(type, format, a1, a2, a3, a4, a5, a6, a7, a8, a9, a0) logtype_array[L_ERR_UNK] = 1; } - (void) sprintf(logtxt,format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0); + (void) snprintf(logtxt,sizeof(logtxt),format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0); if (!logtype_array[type]) return(logtxt); |