summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cversion.c
diff options
context:
space:
mode:
authorderaadt <>2003-04-04 06:55:14 +0000
committerderaadt <>2003-04-04 06:55:14 +0000
commit51cfbad8720d74250fd6d37c8986e1b47d588f8d (patch)
treeefd63fdaa844daff89f7dbc260f5d81e0eb91b82 /src/lib/libcrypto/cversion.c
parentbb3ab39eadbb997785927b2f22f09cde22fdf9ff (diff)
downloadopenbsd-51cfbad8720d74250fd6d37c8986e1b47d588f8d.tar.gz
openbsd-51cfbad8720d74250fd6d37c8986e1b47d588f8d.tar.bz2
openbsd-51cfbad8720d74250fd6d37c8986e1b47d588f8d.zip
more strcpy & sprintf murder; ho ok
Diffstat (limited to 'src/lib/libcrypto/cversion.c')
-rw-r--r--src/lib/libcrypto/cversion.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cversion.c b/src/lib/libcrypto/cversion.c
index f7a1b7a4f0..56471fa74c 100644
--- a/src/lib/libcrypto/cversion.c
+++ b/src/lib/libcrypto/cversion.c
@@ -74,7 +74,7 @@ const char *SSLeay_version(int t)
74#ifdef DATE 74#ifdef DATE
75 static char buf[sizeof(DATE)+11]; 75 static char buf[sizeof(DATE)+11];
76 76
77 sprintf(buf,"built on: %s",DATE); 77 snprintf(buf,sizeof buf,"built on: %s",DATE);
78 return(buf); 78 return(buf);
79#else 79#else
80 return("built on: date not available"); 80 return("built on: date not available");
@@ -85,7 +85,7 @@ const char *SSLeay_version(int t)
85#ifdef CFLAGS 85#ifdef CFLAGS
86 static char buf[sizeof(CFLAGS)+11]; 86 static char buf[sizeof(CFLAGS)+11];
87 87
88 sprintf(buf,"compiler: %s",CFLAGS); 88 snprintf(buf,sizeof buf,"compiler: %s",CFLAGS);
89 return(buf); 89 return(buf);
90#else 90#else
91 return("compiler: information not available"); 91 return("compiler: information not available");
@@ -96,7 +96,7 @@ const char *SSLeay_version(int t)
96#ifdef PLATFORM 96#ifdef PLATFORM
97 static char buf[sizeof(PLATFORM)+11]; 97 static char buf[sizeof(PLATFORM)+11];
98 98
99 sprintf(buf,"platform: %s", PLATFORM); 99 snprintf(buf,sizeof buf,"platform: %s", PLATFORM);
100 return(buf); 100 return(buf);
101#else 101#else
102 return("platform: information not available"); 102 return("platform: information not available");