Commit b79e5401 authored by Richard Berger's avatar Richard Berger
Browse files

Increase string buffer size to 128

parent 9b703c66
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);
    }