Commit 45e38df6 authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@195 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent fa679fd3
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -358,15 +358,11 @@ void Input::substitute(char *str, int flag)

      *ptr = '\0';
      strcpy(work,str);
      if (strlen(work)+strlen(value) >= MAXLINE) {
	sprintf(str,"Input line too long after variable substitution: %s %s",work,value);
	error->one(str);
      }
      if (strlen(work)+strlen(value) >= MAXLINE)
	error->one("Input line too long after variable substitution");
      strcat(work,value);
      if (strlen(work)+strlen(beyond) >= MAXLINE) {
	sprintf(str,"Input line too long after variable substitution: %s %s",work,beyond);
	error->one(str);
      }
      if (strlen(work)+strlen(beyond) >= MAXLINE)
	error->one("Input line too long after variable substitution");
      strcat(work,beyond);
      strcpy(str,work);
      ptr += strlen(value);