copy_resource_to_swm(): Move strcat() to sprintf()