Skip to content
Snippets Groups Projects
Commit af28a1e1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Increase size of spy ring buffer from 10K to 100K bytes

This eliviates the issue of partial/corrupted UTF-8 sequences when spying on a
node serving a UTF-8 terminal.
parent 0a6c1f00
No related branches found
No related tags found
No related merge requests found
Pipeline #5941 passed
......@@ -27,7 +27,7 @@
#include "telnet.h"
#include "str_util.h"
#define SPYBUF_LEN 10000
#define SPYBUF_LEN 100000
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link "Emulvt"
......@@ -88,7 +88,7 @@ int __fastcall TSpyForm::strip_telnet(uchar *buf, int len)
//---------------------------------------------------------------------------
void __fastcall TSpyForm::SpyTimerTick(TObject *Sender)
{
uchar buf[8192];
uchar buf[SPYBUF_LEN];
int rd;
if(*outbuf==NULL)
......
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