René Scharfe <l.s.r@xxxxxx> writes: > + /* rel can refer to path, so don't edit it in place */ > + strbuf_reset(&new_path); > + strbuf_add(&new_path, args->base, args->baselen); > + strbuf_addstr(&new_path, rel); > + strbuf_swap(&path, &new_path); Thanks. That indeed was nasty and tricky.