Fixed issue #40

pull/48/head
BernhardBerbuir 2014-07-08 13:13:45 +02:00
parent d0d4266af2
commit 13ef886a6e
1 changed files with 6 additions and 1 deletions

View File

@ -204,9 +204,14 @@ namespace winsw
w.Close();
offset = i + 1;
// create a new file.
// create a new file and write everything to the new file.
w = new FileStream(BaseLogFileName + "_" + periodicRollingCalendar.format + ext, FileMode.Create);
rolled = true;
if (offset < len)
{
w.Write(buf, offset, len - offset);
break;
}
}
}