Skip to content

Commit

Permalink
Fixed C++ version seemingly being c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaskowicz1 committed Dec 17, 2023
1 parent 050dc45 commit e52bd05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "../include/main.h"

#include "../include/rcon.h"

#include <dpp/dpp.h>

int main(int argc, char *argv[]) {
Expand Down
4 changes: 2 additions & 2 deletions src/rcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e52bd05

Please sign in to comment.