ossp-pkg/pth/pth_high.c 1.100 -> 1.101
--- pth_high.c 2002/11/08 12:38:39 1.100
+++ pth_high.c 2002/11/08 15:35:30 1.101
@@ -537,7 +537,7 @@
pfd[i].revents |= POLLRDNORM;
ok++;
/* support for POLLHUP */
- if (recv(pfd[i].fd, data, 64, MSG_PEEK) == -1) {
+ if (recv(pfd[i].fd, data, sizeof(data), MSG_PEEK) == -1) {
if ( errno == ESHUTDOWN || errno == ECONNRESET
|| errno == ECONNABORTED || errno == ENETRESET) {
pfd[i].revents &= ~(POLLIN);
|
|