Use av_strlcpy instead of snprintf without formatting.