expandtofit
if (expandtofit(dstp, srclen + *dstlenp + 1, dstcapp))
if (!__sfeof(fp) || expandtofit(linep, 1, linecapp))