From 327ec384624ea69aa0e02f89d5513e31752fef90 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sat, 8 Jan 2011 15:41:40 +0200 Subject: [PATCH] =?utf8?q?=D0=A4=D1=83=D0=BD=D0=BA=D1=86=D1=96=D1=8E=20?= =?utf8?q?=D0=BF=D0=B5=D1=80=D0=B5=D1=82=D0=B2=D0=BE=D1=80=D0=B5=D0=BD?= =?utf8?q?=D0=BD=D1=8F=20=D1=80=D0=B0=D0=B4=D0=BA=D1=83=20=D0=BD=D0=B0=20I?= =?utf8?q?P-=D0=B0=D0=B4=D1=80=D0=B5=D1=81=D1=83=20=D0=B7=D0=B0=D0=BC?= =?utf8?q?=D1=8B=D0=BD=D0=B5=D0=BD=D0=BE=20=D0=BD=D0=B0=20inet=5Fpton?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- stglibs/common.lib/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index 71246704..57b37bdf 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -415,7 +415,7 @@ for (int i = 0; i < maxIP; i++) } struct in_addr in; - if (!inet_aton(p1, &in)) + if (inet_pton(AF_INET, p1, &in) != 1) { //printf("INADDR_NONE\n"); return EINVAL; -- 2.44.2