From fee9812c997f4e0f61a09ba613cc0c5fa4c74b19 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 15 Jan 2014 15:38:00 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@11246 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/write_restart.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write_restart.cpp b/src/write_restart.cpp index 1b5a25a888..541bf45942 100644 --- a/src/write_restart.cpp +++ b/src/write_restart.cpp @@ -307,6 +307,7 @@ void WriteRestart::write(char *file) char *ptr = strchr(file,'%'); *ptr = '\0'; sprintf(multiname,"%s%d%s",file,icluster,ptr+1); + *ptr = '%'; if (filewriter) { fp = fopen(multiname,"wb");