[PATCH 8/8] lib: Avoid changing const strings via strchr() and friends