]> git.gir.st - ircpipe.git/commit
NULL-terminate read() calls
authorTobias Girstmair <t@thi3nkpad.localdomain>
Sun, 12 May 2024 18:29:46 +0000 (20:29 +0200)
committerTobias Girstmair <t@thi3nkpad.localdomain>
Sun, 12 May 2024 18:29:46 +0000 (20:29 +0200)
commitb8008236d3b03d92701158f755593b1619a6a28c
treeb05c37af61476c5e4673ebeb1f4f0c9c8d0bbb25
parent34ca6d128a81237854723bb417e00548680ca8b4
NULL-terminate read() calls

we reuse the samme buffer for all network and local read(2)s. irc_answer
(or more specifically, strtok(3)) expects NULL-terminated strings. this
caused us to re-parse older strings when the buffer shrank between two
consecutive read(2) calls.
ircpipe.c
Imprint / Impressum