This commit fixes the memcpy size calculation so it won't crash if the destination stride is bigger than the source stride Related: #1844993
https://gitlab.gnome.org/jadahl/gnome-remote-desktop/-/issues/41 https://gitlab.gnome.org/jadahl/gnome-remote-desktop/-/merge_requests/9#note_803975