Sync copy fix from ucl.
Fix another memory corruption.

Reported by:	az