Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions separation/src/io_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ real* fread_double_array(FILE* file, const char* array_name, unsigned int* sizeO
int rc;
real* arr;

fscanf(file, array_name);
fscanf(file, "%s", array_name);
fscanf(file, "[%u]: ", &size);

arr = (real*) mwMalloc(sizeof(real) * size);
Expand Down Expand Up @@ -101,7 +101,7 @@ int* fread_int_array(FILE *file, const char *array_name, unsigned int* sizeOut)
unsigned int i, size;
int* arr;

fscanf(file, array_name);
fscanf(file, "%s", array_name);
fscanf(file, "[%u]: ", &size);

arr = (int*) mwMalloc(sizeof(int) * size);
Expand Down