diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c3026f..ef0fcdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE ) set_target_properties(${PROJECT_NAME} PROPERTIES - CMAKE_STANDARD 17 - CMAKE_STANDARD_REQUIRED ON + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON ) diff --git a/src/main.cpp b/src/main.cpp index 00b4f05..95cde1c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include "../include/main.h" #include "../include/rcon.h" + #include int main(int argc, char *argv[]) { diff --git a/src/rcon.cpp b/src/rcon.cpp index 9c1f889..54ded38 100644 --- a/src/rcon.cpp +++ b/src/rcon.cpp @@ -118,8 +118,8 @@ void rcon::form_packet(unsigned char packet[], const std::string& data, int32_t return; } - bzero(packet, data_size); - + //bzero(packet, data_size); + // Each part is 4 bytes, so we allocate each part 4 bytes away. packet[0] = data_size; packet[4] = id;