Commit 3ccab876 authored by Pierre de Buyl's avatar Pierre de Buyl
Browse files

fix string length for strncmp

parent b0ba91d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ FixPropelSelf::FixPropelSelf( LAMMPS *lmp, int narg, char **argv )
  if (strncmp(mode_str, "velocity", 8) == 0) {
    mode = VELOCITY;

  } else if (strncmp(mode_str, "quat", 10) == 0) {
  } else if (strncmp(mode_str, "quat", 4) == 0) {

    // This mode should only be supported if the atom style has
    // a quaternion (and if all atoms in the group have it)