Steffen Nurpmeso wrote in <20210827004938.ufzjl%[email protected]>: ... |+ if (any) |+ { |+ for (tmp = new; tmp != curr; tmp = tmp->next) |+ { |+ l = strlen(tmp->name) +1; |+ buf = xrealloc(buf, all_len + 1 + l);
And this can be optimized, we already query all_dep_len at the beginning, so one xrealloc() before the loop is enough. I'll have this already here, but have to look again tomorrow anyhow. Good night from Germany, --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)
