--- ./sysklogd/syslogd.c.klogd1 2006-03-13 14:59:45.000000000 +0100 +++ ./sysklogd/syslogd.c 2006-03-13 15:04:12.000000000 +0100 @@ -709,7 +709,7 @@ if (doKernelLog && FD_ISSET(klog_fd, &fds)) { int i; - if ((i = read(klog_fd, tmpbuf + 8, TMP_BUF_SZ)) > 0) { + if ((i = read(klog_fd, tmpbuf + 8, TMP_BUF_SZ - 8)) > 0) { memcpy(tmpbuf, "kernel: ", 8); i += 8; tmpbuf[i] = '\0';