Fixed bug for chars with ASCII value > 127, explicitly casting to an unsigned char (Sebastian Gottschalk)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-03-14 14:17:28 +00:00
parent 2eb37f730d
commit 8a5a7042f1

View File

@@ -1465,7 +1465,7 @@ GSocketError GAddress_INET6_SetPortName(GAddress *address, const char *port,
se = getservbyname(port, protocol);
if (!se)
{
if (isdigit(port[0]))
if (isdigit((unsigned char) port[0]))
{
int port_int;