Commit e78c4f53 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

Fix a new gcc-9 warning [-Wstringop-truncation]



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6581)

(cherry picked from commit dc6c374b)
parent 8a853462
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ static int MS_CALLBACK slg_write(BIO *b, const char *in, int inl)
    if ((buf = (char *)OPENSSL_malloc(inl + 1)) == NULL) {
        return (0);
    }
    strncpy(buf, in, inl);
    memcpy(buf, in, inl);
    buf[inl] = '\0';

    i = 0;