Fix a new gcc-9 warning [-Wstringop-truncation]
[openssl.git] / crypto / bio / bss_log.c
index 037691901755bb0cfea9def63788a3c8421d2e80..4324f24126818d768f5896ec717577de019b85a2 100644 (file)
@@ -200,7 +200,7 @@ static int slg_write(BIO *b, const char *in, int inl)
         BIOerr(BIO_F_SLG_WRITE, ERR_R_MALLOC_FAILURE);
         return 0;
     }
-    strncpy(buf, in, inl);
+    memcpy(buf, in, inl);
     buf[inl] = '\0';
 
     i = 0;