Closed mpotse closed 4 months ago
Attention: Patch coverage is 8.33333%
with 11 lines
in your changes are missing coverage. Please review.
Project coverage is 50.46%. Comparing base (
9e391f3
) to head (1ec5494
).
Files | Patch % | Lines |
---|---|---|
src/mmg2d/inout_2d.c | 0.00% | 4 Missing :warning: |
src/mmg3d/inout_3d.c | 0.00% | 4 Missing :warning: |
src/mmgs/inout_s.c | 25.00% | 2 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks!
The .mesh reader uses fgets() to skip comments (until end of line) but did not check the result, so it would not have noticed anything in the unlikely case of a comment line longer than MMG5_FILESTR_LGTH = 128 characters. This commit lets fgets be called repeatedly until EOL or EOF is encountered. This also avoids a compiler warning on each library. Using getline() would be easier but that is not standard C.