Skip to content

Commit 1fb9edc

Browse files
committed
Bugfix
1 parent 23d0ec8 commit 1fb9edc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.20)
22
project(binsparse-rc)
33

4-
set(CMAKE_C_STANDARD 17)
4+
set(CMAKE_C_STANDARD 11)
55

66
set(CMAKE_C_FLAGS "-O3 -march=native")
77

examples/check_equivalence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bsp_fdataset_info_t bsp_parse_fdataset_string(char* str) {
9898

9999
if (split == -1) {
100100
bsp_fdataset_info_t info;
101-
info.fname = (char*)malloc(sizeof(char) * len);
101+
info.fname = (char*)malloc(sizeof(char) * (len + 1));
102102
strcpy(info.fname, str);
103103
info.dataset = NULL;
104104
return info;

0 commit comments

Comments
 (0)