]> git.gir.st - ircpipe.git/commit
NULL-terminate read() calls
authorTobias Girstmair <tobi@isticktoit.net>
Sun, 12 May 2024 18:29:46 +0000 (20:29 +0200)
committerTobias Girstmair <tobi@isticktoit.net>
Sun, 12 May 2024 18:29:46 +0000 (20:29 +0200)
commit5a4d4281c60cb57068ddf71da051067d02251095
treeb05c37af61476c5e4673ebeb1f4f0c9c8d0bbb25
parent695529a3e279fad32a5b1bd371beedccbf9b1538
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