const uint8_t *buf_ptr= *pbuf_ptr;
buf_ptr++; //gurantees that -1 is within the array
- buf_end -= 2; // gurantees that +2 is within the array
+ buf_end -= 3; // gurantees that +3 is within the array
while (buf_ptr < buf_end) {
if(*buf_ptr==0){
}
buf_ptr += 2;
}
- buf_end += 2; //undo the hack above
+ buf_end += 3; //undo the hack above
*pbuf_ptr = buf_end;
return -1;