more replacing of sprintf() with snprintf()

This commit is contained in:
Axel Kohlmeyer
2018-09-06 10:45:48 -04:00
parent 4d52cb9245
commit 9c27548a5c
67 changed files with 168 additions and 185 deletions

View File

@ -845,7 +845,7 @@ void PairTersoffTable::read_file(char *file)
fp = force->open_potential(file);
if (fp == NULL) {
char str[128];
sprintf(str,"Cannot open Tersoff potential file %s",file);
snprintf(str,128,"Cannot open Tersoff potential file %s",file);
error->one(FLERR,str);
}
}