Commit af8af613 authored by Don Gagne's avatar Don Gagne

Fix Linux Release compiler warning

parent 93a24d4b
......@@ -107,7 +107,7 @@ void QGCUASFileManager::_openAckResponse(Request* openAck)
// File length comes back in data
Q_ASSERT(openAck->hdr.size == sizeof(uint32_t));
uint32_t fileLength = *((uint32_t*)openAck->data);
uint32_t fileLength = *((uint32_t*)&openAck->data[0]);
emit openFileLength(fileLength);
_readOffset = 0; // Start reading at beginning of file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment