aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-05-26 11:45:53 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-05-26 11:45:53 +0200
commitcd1b5097d6683355bbe2b96add8740ffc738ef8f (patch)
tree1e7c31893468c7f05aa07e0836bf0fb58d820b0c
parentcad919018ed72005d2bc110247087201b0dea7ab (diff)
fix another silly bug
-rw-r--r--client/CMakeLists.txt1
-rw-r--r--client/parse.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 5da93e4..6aa4b4f 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.29)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
+set(CMAKE_BUILD_TYPE Debug)
project(puzzlebox_client C CXX)
diff --git a/client/parse.cpp b/client/parse.cpp
index 300df7c..f31e802 100644
--- a/client/parse.cpp
+++ b/client/parse.cpp
@@ -138,8 +138,7 @@ static int parse_number(const char * str, char * data, size_t * offset) {
}
*offset += size;
- i += len;
- return i;
+ return len;
}
static int _strtodata_main(const char * str, char* data, size_t * offset) {