Increase string buffer size to 128

This commit is contained in:
Richard Berger
2019-08-20 16:55:36 -06:00
parent 9b703c6675
commit b79e5401d4

View File

@ -1620,16 +1620,16 @@ void lammps_set_fix_external_callback(void *ptr, char *id, FixExternalFnPtr call
{
int ifix = lmp->modify->find_fix(id);
if (ifix < 0) {
char str[50];
snprintf(str, 50, "Can not find fix with ID '%s'!", id);
char str[128];
snprintf(str, 128, "Can not find fix with ID '%s'!", id);
lmp->error->all(FLERR,str);
}
Fix *fix = lmp->modify->fix[ifix];
if (strcmp("external",fix->style) != 0){
char str[50];
snprintf(str, 50, "Fix '%s' is not of style external!", id);
char str[128];
snprintf(str, 128, "Fix '%s' is not of style external!", id);
lmp->error->all(FLERR,str);
}