Skip to content

Commit

Permalink
fixed small error in fread call
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin Prigent committed Mar 1, 2024
1 parent fc90279 commit 1ea06b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inout.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ int H2T_loadNpy(MMG5_pMesh mmgMesh, int** tabhex, char* filename) {
fread(&buffer,sizeof(buffer),1,inm);
}

fread(&str[i],sizeof(char),5,inm);
fread(str,sizeof(char),5,inm);
if (!strcmp(str,"descr")) {
/* read header until type-specifying integers are met */
while (!((buffer >= H2T_HEX_ZERO) && (buffer <= H2T_HEX_NINE))) {
Expand Down

0 comments on commit 1ea06b1

Please sign in to comment.