klogctl: fix a problem where we don't terminate read data with '\0'
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 19 Nov 2008 07:59:49 +0000 (07:59 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 19 Nov 2008 07:59:49 +0000 (07:59 -0000)
commit2e7dc5d37bb3b10c486496fa15b8ff366d8a6d66
tree6c0cbc8bba8335ceb4db5307e617bdda1f1d3cf3
parenta09a42cd83a0365b5b52dfdcce20b3c9932be801
klogctl: fix a problem where we don't terminate read data with '\0'
 and then misinterpret it. Code shrink while at it.

function                                             old     new   delta
klogd_main                                           404     362     -42
sysklogd/klogd.c