diff options
author | ho <> | 2003-04-06 09:22:53 +0000 |
---|---|---|
committer | ho <> | 2003-04-06 09:22:53 +0000 |
commit | 076c25d273764c843263b4783f51a4972e8c301b (patch) | |
tree | 53edb40fe170a6d578386f380e5c0c39c150ed78 /src/lib/libcrypto/x509/by_dir.c | |
parent | d0dbce9d2ce1f0022e91a9d6007272d786be2a60 (diff) | |
download | openbsd-076c25d273764c843263b4783f51a4972e8c301b.tar.gz openbsd-076c25d273764c843263b4783f51a4972e8c301b.tar.bz2 openbsd-076c25d273764c843263b4783f51a4972e8c301b.zip |
sprintf->snprintf. deraadt@ suggestions and ok
Diffstat (limited to 'src/lib/libcrypto/x509/by_dir.c')
-rw-r--r-- | src/lib/libcrypto/x509/by_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c index 448bd7e69c..a5c306f1fd 100644 --- a/src/lib/libcrypto/x509/by_dir.c +++ b/src/lib/libcrypto/x509/by_dir.c | |||
@@ -302,8 +302,8 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, | |||
302 | k=0; | 302 | k=0; |
303 | for (;;) | 303 | for (;;) |
304 | { | 304 | { |
305 | sprintf(b->data,"%s/%08lx.%s%d",ctx->dirs[i],h, | 305 | snprintf(b->data,b->max,"%s/%08lx.%s%d",ctx->dirs[i],h, |
306 | postfix,k); | 306 | postfix,k); |
307 | k++; | 307 | k++; |
308 | if (stat(b->data,&st) < 0) | 308 | if (stat(b->data,&st) < 0) |
309 | break; | 309 | break; |