From 015cd9dd0517c1ff44b61806bb740b9aa9e39c0f Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Sat, 5 Apr 2003 11:05:09 +0000 Subject: Trivial sprintf() -> snprintf() changes. ok deraadt@ --- lib/libcrypto/x509/x509_txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libcrypto/x509/x509_txt.c') diff --git a/lib/libcrypto/x509/x509_txt.c b/lib/libcrypto/x509/x509_txt.c index 4f83db8ba2f..9d09ae17e82 100644 --- a/lib/libcrypto/x509/x509_txt.c +++ b/lib/libcrypto/x509/x509_txt.c @@ -148,7 +148,7 @@ const char *X509_verify_cert_error_string(long n) return("unhandled critical extension"); default: - sprintf(buf,"error number %ld",n); + snprintf(buf,sizeof buf,"error number %ld",n); return(buf); } } -- cgit v1.2.3