Skip to content
Snippets Groups Projects
Commit e85eeed0 authored by rswindell's avatar rswindell
Browse files

Increase the SpyTimerTick read chunk from 1KB-1 to 8KB. This appears

to resolve the infinite loop when emulvt.pas received terminal sequences it
doesn't like (e.g. SyncTERM font-transfers).
parent 7a65830c
No related branches found
No related tags found
No related merge requests found
......@@ -100,13 +100,13 @@ int __fastcall TSpyForm::strip_telnet(uchar *buf, int len)
//---------------------------------------------------------------------------
void __fastcall TSpyForm::SpyTimerTick(TObject *Sender)
{
uchar buf[1024];
uchar buf[8192];
int rd;
if(*outbuf==NULL)
return;
rd=RingBufRead(*outbuf,buf,sizeof(buf)-1);
rd=RingBufRead(*outbuf,buf,sizeof(buf));
if(rd) {
rd=strip_telnet(buf,rd);
Terminal->WriteBuffer(buf,rd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment