add null character to buf after read line from client