Fixed buffer issues

Changed the getline() calls from getline( sndbuf, strlen(sndbuf) ) to
getline( sndbuf, DEFAULT_BUFLEN )