git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ec10f
)
Функцію перетворення радку на IP-адресу замынено на inet_pton
author
Maxim Mamontov
<faust.madf@gmail.com>
Sat, 8 Jan 2011 13:41:40 +0000
(15:41 +0200)
committer
Maxim Mamontov
<faust.madf@gmail.com>
Sat, 8 Jan 2011 13:41:40 +0000
(15:41 +0200)
stglibs/common.lib/common.cpp
patch
|
blob
|
history
diff --git
a/stglibs/common.lib/common.cpp
b/stglibs/common.lib/common.cpp
index 7124670401bf5a6ed922145e29268b38488d5eb8..57b37bdfdbb98aeb5915e804962cbe0a45098c82 100644
(file)
--- 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;