diff options
Diffstat (limited to 'src/lib/libcrypto/cversion.c')
| -rw-r--r-- | src/lib/libcrypto/cversion.c | 6 |
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"); |
