entry.c: convert strcpy to xsnprintf