summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509/x509_txt.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2003-04-05 11:05:09 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2003-04-05 11:05:09 +0000
commit015cd9dd0517c1ff44b61806bb740b9aa9e39c0f (patch)
treec1e40f10c3e779bddb15a455d934b7144059d7e8 /lib/libcrypto/x509/x509_txt.c
parent4779c09256587b05dcaa7dac5442842716c42dfb (diff)
Trivial sprintf() -> snprintf() changes. ok deraadt@
Diffstat (limited to 'lib/libcrypto/x509/x509_txt.c')
-rw-r--r--lib/libcrypto/x509/x509_txt.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}