Fix copy-pasto.

Found by ASAN, reported by nwc10++.