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