It was assumed destination buffers were at least 1024 bytes which could overflow by 256 bytes for sequencer directories. Resolve by passing the destination buffer size to BKE_bpath_foreach_path_fixed_process. Also remove strcpy use in foreach_path_clean_cb.