But I think these `strlen` -> `strnlen` provide added safety in case there's no `'\0` in `buffer`.