[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in socket.cpp
From: |
Uwe Buchholz |
Subject: |
bug in socket.cpp |
Date: |
Fri, 08 Apr 2005 15:49:54 +0200 |
Hi,
I compiled commoncpp2-1.3.8 and tried tcpstr1 with VC++ 6.0, SDK installed.
There was 2 problems:
1st in config.h I have to comment Line 83 :
//#define HAVE_PLATFORMSDK
because I need to include <windows.h> before <winsock2.h>.
---------------------------
2nd in socket.cpp Line 2572 :
if(!cp)
cp = strrchr(namebuf, ':');
if(!cp)
{
endStream();
connectError();
return;
}
*(cp++) = 0; // << ----------------------- this line is missing
if(isdigit(*cp))
port = atoi(cp);
in all other cases where this sequence is used, it seemed to be OK.
Best regards
Uwe Buchholz
- bug in socket.cpp,
Uwe Buchholz <=