Fixed a bug in the copy() fn uncovered by the fix of r5966.
Authored by: bugman 2008-04-23
Parent: [r5966]
Child: [r5968]