fix overly pessimistic realloc strategy in getdelim