fix bufpos check error

pull/24/head
kevin1018 8 years ago committed by GitHub
parent cd8f5f483d
commit c6743b7606

@ -377,6 +377,10 @@ mmsMsg_openFile(const char* basepath, char* fileName, bool readWrite)
bool
mmsMsg_parseFileName(char* filename, uint8_t* buffer, int* bufPos, int maxBufPos , uint32_t invokeId, ByteBuffer* response)
{
if (*bufPos == maxBufPos) {
return true;
}
uint8_t tag = buffer[(*bufPos)++];
int length;

Loading…
Cancel
Save