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

This commit is contained in:
Axel Kohlmeyer
2019-10-18 02:42:50 -04:00
parent d9d22658fd
commit 24b54026e2

View File

@ -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))