The strchrnul version was giving weird crashes on aarch64 belkin-rt3200. I haven't figured out why but this one doesn't