From 80c8b3ef62ec936bd21a8420369a247bf4113dea Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Fri, 9 Aug 2024 11:57:54 +0200 Subject: [PATCH] better name --- EthernetInterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/EthernetInterface.cpp b/EthernetInterface.cpp index a7ca0be..a5bcb08 100644 --- a/EthernetInterface.cpp +++ b/EthernetInterface.cpp @@ -241,12 +241,12 @@ void EthernetInterface::loop2() { int count=outboundRing->count(); if (Diag::ETHERNET) DIAG(F("Ethernet reply socket=%d, count=:%d"), socketOut,count); { - char buffer[count+1]; // one extra for '\0' + char tmpbuf[count+1]; // one extra for '\0' for(int i=0;iread(); + tmpbuf[i] = outboundRing->read(); } - buffer[count]=0; - clients[socketOut].write(buffer,count); + tmpbuf[count]=0; + clients[socketOut].write(tmpbuf,count); } clients[socketOut].flush(); //maybe }