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
Branches
Tags
No related merge requests found
Pipeline #5941 passed
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "telnet.h" #include "telnet.h"
#include "str_util.h" #include "str_util.h"
#define SPYBUF_LEN 10000 #define SPYBUF_LEN 100000
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
#pragma package(smart_init) #pragma package(smart_init)
#pragma link "Emulvt" #pragma link "Emulvt"
...@@ -88,7 +88,7 @@ int __fastcall TSpyForm::strip_telnet(uchar *buf, int len) ...@@ -88,7 +88,7 @@ int __fastcall TSpyForm::strip_telnet(uchar *buf, int len)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void __fastcall TSpyForm::SpyTimerTick(TObject *Sender) void __fastcall TSpyForm::SpyTimerTick(TObject *Sender)
{ {
uchar buf[8192]; uchar buf[SPYBUF_LEN];
int rd; int rd;
if(*outbuf==NULL) if(*outbuf==NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment