From 29d23e7dd40febc8c270578351a8f05c1cf16af9 Mon Sep 17 00:00:00 2001 From: gardners Date: Thu, 16 May 2013 07:06:10 +0930 Subject: [PATCH] fix bug in parsing reverse block length fields. --- serialization_meshms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serialization_meshms.c b/serialization_meshms.c index 0a14e02b..65edb1bd 100644 --- a/serialization_meshms.c +++ b/serialization_meshms.c @@ -125,7 +125,7 @@ int decode_length_backwards(unsigned char *buffer,int offset, *length=0; switch(buffer[offset]) { case 0xff: - offset-=4; + offset-=2; int i; for(i=0;i<16;i+=8) (*length)|=buffer[offset++]<