Tweaked the alloc/realloc code in flist_expand().