On Mon, 20 Jul 2009, Szak�ts Viktor wrote:
> in hbinet.c line 981, buffer is initialized to NULL,

Yes it is.

> later in line 1003, buffer is used in recv() line as
> 'buffer + iReceived'.

Yes it is but iMaxLen is 0 so as long as recv() implementation
is not broken then nothing wrong should happen. If you do not
like it then you can change it to
   char cVal = 0;
   [...]
      buffer = &cVal;
but in fact it should not cause any difference for valid recv() call.
BTW hb_itemGetWriteCL() cannot return NULL in this code but you can
disable the condition in line 965 and check if in Windows calling
   recv( hSock, NULL, 0, MSG_NOSIGNAL )
causes any problems in code like:
   ? HB_INETRECV( hSock, NIL, 100 )
It shouldn't.

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to