git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@746 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2007-07-12 13:07:06 +00:00
parent a87e25b8af
commit 23f6dbc8a6
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ void WriteRestart::write(char *file)
if (me == 0) {
char *hfile;
if (multiproc) {
char *hfile = new char[strlen(file) + 16];
hfile = new char[strlen(file) + 16];
char *ptr = strchr(file,'%');
*ptr = '\0';
sprintf(hfile,"%s%s%s",file,"base",ptr+1);