Changeset 260

Show
Ignore:
Timestamp:
10/30/04 19:38:25 (9 years ago)
Author:
alexcv
Message:

Asynch read(). fixed bug in byte counting. *fixed typo ;-)))*

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/src/ping_thread.c

    r259 r260  
    173173                        /** We don't have to use FD_ISSET() because there 
    174174                         *  was only one fd. */ 
    175                         numbytes = read(sockfd, request + totalbytes, 8); 
    176                                         //MAX_BUF - (totalbytes + 1)); 
     175                        numbytes = read(sockfd, request + totalbytes, 
     176                                        MAX_BUF - (totalbytes + 1)); 
    177177                        if (numbytes < 0) { 
    178178                                debug(LOG_ERR, "read(): %s", strerror(errno));