Skip to content

Commit a4392ed

Browse files
committed
Two non-const strings that we missed.
1 parent d8c117d commit a4392ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/binsparse/read_matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ size_t bsp_final_dot(const char* str) {
115115
return dot_idx;
116116
}
117117

118-
bsp_matrix_t bsp_read_matrix(const char* file_name, char* group) {
118+
bsp_matrix_t bsp_read_matrix(const char* file_name, const char* group) {
119119
if (group == NULL) {
120120
size_t idx = bsp_final_dot(file_name);
121121
if (strcmp(file_name + idx, ".hdf5") == 0 ||

include/binsparse/write_matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int bsp_write_matrix_to_group(hid_t f, bsp_matrix_t matrix, cJSON* user_json,
121121
return 0;
122122
}
123123

124-
int bsp_write_matrix(const char* fname, bsp_matrix_t matrix, char* group,
124+
int bsp_write_matrix(const char* fname, bsp_matrix_t matrix, const char* group,
125125
cJSON* user_json, int compression_level) {
126126
if (group == NULL) {
127127
hid_t f = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

0 commit comments

Comments
 (0)