From: Alan Cox Date: Thu, 9 Nov 2017 22:17:09 +0000 (+0000) Subject: slip: fix dumb bug that corrupted memory X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=142644bfa0ccf521f3d4384a2635b44a1ffe6fcb;p=FUZIX.git slip: fix dumb bug that corrupted memory --- diff --git a/Applications/netd/slip.c b/Applications/netd/slip.c index 72c17cca..ae2c4b06 100644 --- a/Applications/netd/slip.c +++ b/Applications/netd/slip.c @@ -105,6 +105,7 @@ static int slip_poll( void ) /* receive packet to a buffer */ static int slip_recv( unsigned char *b, int len ) { + len = iptr - ibuf; /* Mark it as IP */ b[12] = 0x08; b[13] = 0x00;