From e0056b3d48f0f028e1b69f032e093f221d2bafeb Mon Sep 17 00:00:00 2001 From: jcej Date: Wed, 3 Feb 1999 00:19:18 +0000 Subject: *** empty log message *** --- docs/tutorials/001/logger.h | 4 ++-- docs/tutorials/001/page04.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tutorials/001/logger.h b/docs/tutorials/001/logger.h index 32546dd5ffb..3ea531b842c 100644 --- a/docs/tutorials/001/logger.h +++ b/docs/tutorials/001/logger.h @@ -95,7 +95,7 @@ protected: Create and initialize a small receive buffer. The extra byte is there to allow us to have a null-terminated string when it's over. */ - char buf[128+1]; + char buf[BUFSIZ+1]; /* Invoke the recv() method of the ACE_SOCK_Stream to get some data. It will @@ -121,7 +121,7 @@ protected: and the header sys/socket.h for the gory details. */ ssize_t retval; - switch( retval = this->cli_stream_.recv(buf,sizeof(buf)-1) ) + switch( retval = this->cli_stream_.recv(buf,BUFSIZ) ) { case -1: ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p bad read\n", "client logger"), -1); diff --git a/docs/tutorials/001/page04.html b/docs/tutorials/001/page04.html index 18950902db8..22c35a7d4d4 100644 --- a/docs/tutorials/001/page04.html +++ b/docs/tutorials/001/page04.html @@ -116,7 +116,7 @@ protected: Create and initialize a small receive buffer. The extra byte is there to allow us to have a null-terminated string when it's over. */ - char buf[128+1]; + char buf[BUFSIZ+1]; /* Invoke the recv() method of the ACE_SOCK_Stream to get some data. It will @@ -142,7 +142,7 @@ protected: and the header sys/socket.h for the gory details. */ ssize_t retval; - switch( retval = this->cli_stream_.recv(buf,sizeof(buf)-1) ) + switch( retval = this->cli_stream_.recv(buf,BUFSIZ) ) { case -1: ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p bad read\n", "client logger"), -1); -- cgit v1.2.1