diff options
Diffstat (limited to 'src/lib/libcrypto/bio/bss_log.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c index 342176f82e..6aa2d8b0a4 100644 --- a/src/lib/libcrypto/bio/bss_log.c +++ b/src/lib/libcrypto/bio/bss_log.c | |||
| @@ -157,7 +157,7 @@ slg_write(BIO *b, const char *in, int inl) | |||
| 157 | { 0, "", LOG_ERR } /* The default */ | 157 | { 0, "", LOG_ERR } /* The default */ |
| 158 | }; | 158 | }; |
| 159 | 159 | ||
| 160 | if ((buf = (char *)malloc(inl + 1)) == NULL) { | 160 | if ((buf = malloc(inl + 1)) == NULL) { |
| 161 | return (0); | 161 | return (0); |
| 162 | } | 162 | } |
| 163 | strlcpy(buf, in, inl + 1); | 163 | strlcpy(buf, in, inl + 1); |
