summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-11 17:28:56 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-10-11 17:28:56 +0000
commitdeb81c174517475845e28b6e24c40cdf3f8fb4f5 (patch)
tree3212643ff35d9cbafe8ff39b97dee5e7a98ee39c
parent74066e0f563ef630e432d3bbb10544318b70ade3 (diff)
Octets in an IPv4 address are unsigned
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11837 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 381a2dc40..3e22ff73e 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -244,7 +244,7 @@ class ModuleCloaking : public Module
}
else
{
- const char* ip4 = (const char*)&ip.in4.sin_addr;
+ const unsigned char* ip4 = (const unsigned char*)&ip.in4.sin_addr;
snprintf(rv, 50, ".%d.%d.IP", ip4[1], ip4[0]);
}
return rv;