Patrick Steinhardt <ps@xxxxxx> writes: > The `buf` parameter of `index_mem()` is a non-constant string. This will > break once we enable `-Wwrite-strings` because we also pass constants > from at least one callsite. > > Adapt the parameter to be a constant. As we cannot free the buffer > without casting now, this also requires us to move the lifetime of the > nested buffer around. Makes sense.