diff options
-rw-r--r-- | src/modules/m_cloaking.cpp | 2 |
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; |