On Sun, 7 May 2000, John Byrd wrote:

>       while ((i = select(sock + 1, &readfds, NULL, NULL, &tv)) > 0) {
>               if ((i = FD_ISSET(sock, &readfds)) < 1) break;
>               memset(res, 0, 1024);
>               r = read(sock, res, 1023);
>               if (r < 1) break;
>               s.append(res);
                ^^^^^^^^^^^^^^
probably want "s.append(res, r)" -- unless you're knowingly not
handling binary protocols.

And then you don't need to do the "-1" trick.
        /r$

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to