Major silly bug fix

Destination and source were the wrong way round in memcpy()