summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/001/logger.h4
-rw-r--r--docs/tutorials/001/page04.html4
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.
*/</font>
- char buf[128+1];
+ char buf[BUFSIZ+1];
<font color=red>/*
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.
*/</font>
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, "<font color=green>(%P|%t) %p bad read\n</font>", "<font color=green>client logger</font>"), -1);