mirror of https://github.com/lammps/lammps.git
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@195 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
fa679fd3e1
commit
45e38df6d3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue