rerere: replace strcpy with xsnprintf