diff --git a/crypto/buffer/buffer.c b/crypto/buffer/buffer.c index d7aa79ad7..a6b590c3b 100644 --- a/crypto/buffer/buffer.c +++ b/crypto/buffer/buffer.c @@ -186,7 +186,7 @@ void BUF_reverse(unsigned char *out, unsigned char *in, size_t size) { out += size - 1; for (i = 0; i < size; i++) - *in++ = *out--; + *out-- = *in++; } else {