chiark / gitweb /
lib.c (dstr_readline): Rewrite to cope with embedded zero bytes.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 13 Sep 2024 20:54:57 +0000 (21:54 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Sep 2024 20:54:57 +0000 (21:54 +0100)
commit53d2395dc15030ab9df5bb8b5f315bd7e7c2f849
tree3ce573532ca783bca091cf58aafb4fc3d526df7c
parent51c47adaf77e7e99b49f52dac6a9efd0f3508d14
lib.c (dstr_readline): Rewrite to cope with embedded zero bytes.

Alas, `fgets' produces nonsense when there are zero bytes, so we have
to do this by hand.
lib.c