Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use fgets() results when reading .mesh files, plus language fixes #271

Merged
merged 1 commit into from
May 17, 2024

Commits on May 13, 2024

  1. use fgets() results when reading .mesh files, plus language fixes

    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.
    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.
    mpotse committed May 13, 2024
    Configuration menu
    Copy the full SHA
    1ec5494 View commit details
    Browse the repository at this point in the history