Commit b1ad95e3 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix windows build



Fix error in WIN32_rename() introduced by commit b4faea50.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent 2ed42bf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2365,7 +2365,7 @@ static int WIN32_rename(const char *from, const char *to)
    } else {                    /* UNICODE path */

        size_t i, flen = strlen(from) + 1, tlen = strlen(to) + 1;
        tfrom = malloc(*sizeof(*tfrom) * (flen + tlen));
        tfrom = malloc(sizeof(*tfrom) * (flen + tlen));
        if (tfrom == NULL)
            goto err;
        tto = tfrom + flen;