Unverified Commit 24b54026 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix some more fgets() related warnings in pair style airebo

parent d9d22658
Loading
Loading
Loading
Loading
+2 −2
Changes for src/MANYBODY/pair_airebo.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3391,8 +3391,8 @@ void PairAIREBO::read_file(char *filename)

    // skip initial comment line and check for potential file style identifier comment

    fgets(s,MAXLINE,fp);
    fgets(s,MAXLINE,fp);
    utils::sfgets(FLERR,s,MAXLINE,fp,filename,error);
    utils::sfgets(FLERR,s,MAXLINE,fp,filename,error);

    if (((variant == AIREBO) && (strncmp(s,"# AIREBO ",9) != 0))
        || ((variant == REBO_2) && (strncmp(s,"# REBO2 ",8) != 0))