Kdrefactor

Use of sizeof(buf) will be sufficient? ;)