projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some const fixes
[oweals/openssl.git]
/
apps
/
s_time.c
diff --git
a/apps/s_time.c
b/apps/s_time.c
index 1134020d2a146ea1508a12f687bea63420feafff..904945e1a866a38a778b8f80a852a9e5abfed7da 100644
(file)
--- a/
apps/s_time.c
+++ b/
apps/s_time.c
@@
-516,7
+516,7
@@
int MAIN(int argc, char **argv)
if (s_www_path != NULL)
{
if (s_www_path != NULL)
{
-
sprintf(
buf,"GET %s HTTP/1.0\r\n\r\n",s_www_path);
+
BIO_snprintf(buf,sizeof
buf,"GET %s HTTP/1.0\r\n\r\n",s_www_path);
SSL_write(scon,buf,strlen(buf));
while ((i=SSL_read(scon,buf,sizeof(buf))) > 0)
bytes_read+=i;
SSL_write(scon,buf,strlen(buf));
while ((i=SSL_read(scon,buf,sizeof(buf))) > 0)
bytes_read+=i;
@@
-571,7
+571,7
@@
next:
if (s_www_path != NULL)
{
if (s_www_path != NULL)
{
-
sprintf(
buf,"GET %s HTTP/1.0\r\n\r\n",s_www_path);
+
BIO_snprintf(buf,sizeof
buf,"GET %s HTTP/1.0\r\n\r\n",s_www_path);
SSL_write(scon,buf,strlen(buf));
while (SSL_read(scon,buf,sizeof(buf)) > 0)
;
SSL_write(scon,buf,strlen(buf));
while (SSL_read(scon,buf,sizeof(buf)) > 0)
;
@@
-609,7
+609,7
@@
next:
if (s_www_path)
{
if (s_www_path)
{
-
sprintf(
buf,"GET %s HTTP/1.0\r\n\r\n",s_www_path);
+
BIO_snprintf(buf,sizeof
buf,"GET %s HTTP/1.0\r\n\r\n",s_www_path);
SSL_write(scon,buf,strlen(buf));
while ((i=SSL_read(scon,buf,sizeof(buf))) > 0)
bytes_read+=i;
SSL_write(scon,buf,strlen(buf));
while ((i=SSL_read(scon,buf,sizeof(buf))) > 0)
bytes_read+=i;