From: Florian Forster Date: Thu, 3 Jul 2008 09:39:13 +0000 (+0200) Subject: src/rrd_daemon.c: Use `sread' and `swrite' instead of read(2) and write(2). X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=d4dc16f8b4746f862477a44c953e5198546d41ec;hp=d4dc16f8b4746f862477a44c953e5198546d41ec;p=rrdtool.git src/rrd_daemon.c: Use `sread' and `swrite' instead of read(2) and write(2). The ``secure'' sread assures that the received string ends with a newline, strips it off the buffer and assures that the returned buffer is null terminated. swrite returns success only if all bytes could be written. ---