diff --git a/src/main.cpp b/src/main.cpp index 4e8cb3b..81c1f4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include "Logger.hpp" #include "Socket.hpp" +#include #include using namespace std; @@ -24,7 +25,8 @@ int main() { * 2. Parse bytes from packet * 3. Put into components understandable for server */ - uint8_t buffer[131] = recv(clientSocket, buffer, sizeof(buffer), 0); + char buffer[131] = {}; + buffer[0] = recv(clientSocket, buffer, sizeof(buffer), 0); } return 0;