It should be the size of the destination buffer, not the source. In this case, both src and dest have the same size.