projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use BUF_strlcpy() instead of strcpy().
[openssl.git]
/
crypto
/
bn
/
bn_lib.c
diff --git
a/crypto/bn/bn_lib.c
b/crypto/bn/bn_lib.c
index d29a7cc8df299b584aafc53a2d08cfeac0333bd7..3f607cd53249b3e4ff5695933a9ed3b907852c30 100644
(file)
--- a/
crypto/bn/bn_lib.c
+++ b/
crypto/bn/bn_lib.c
@@
-145,11
+145,11
@@
char *BN_options(void)
{
init++;
#ifdef BN_LLONG
{
init++;
#ifdef BN_LLONG
-
sprintf(data,"bn(%d,%d)",(int)sizeof(BN_ULLONG)*8
,
- (int)sizeof(BN_ULONG)*8);
+
BIO_snprintf(data,sizeof data,"bn(%d,%d)"
,
+
(int)sizeof(BN_ULLONG)*8,
(int)sizeof(BN_ULONG)*8);
#else
#else
-
sprintf(data,"bn(%d,%d)",(int)sizeof(BN_ULONG)*8
,
- (int)sizeof(BN_ULONG)*8);
+
BIO_snprintf(data,sizeof data,"bn(%d,%d)"
,
+
(int)sizeof(BN_ULONG)*8,
(int)sizeof(BN_ULONG)*8);
#endif
}
return(data);
#endif
}
return(data);