Fix a warning in copy.c