1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with log reader

fix issue with searching names on webfront that could be parsed to hex
This commit is contained in:
RaidMax
2019-08-01 19:42:44 -05:00
parent 508d0f7aa3
commit 831e64eadb
4 changed files with 10 additions and 13 deletions

View File

@ -39,7 +39,7 @@ namespace IW4MAdmin.Application.IO
using (var rd = new StreamReader(new FileStream(LogFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite), Utilities.EncodingType))
{
char[] buff = new char[fileSizeDiff];
rd.BaseStream.Seek(-fileSizeDiff, SeekOrigin.End);
rd.BaseStream.Seek(startPosition, SeekOrigin.Begin);
await rd.ReadAsync(buff, 0, (int)fileSizeDiff);
var stringBuilder = new StringBuilder();