Changeset 9462 in ntrip
- Timestamp:
- Jun 8, 2021, 11:28:14 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r9461 r9462 1536 1536 i = chunksize; 1537 1537 } 1538 if (nChunkBytes <= nBufferBytes) { 1539 memcpy(chunkBytes + nChunkBytes, buffer + pos, (size_t) i); 1540 nChunkBytes += i; 1541 } 1538 memcpy(chunkBytes + nChunkBytes, buffer + pos, (size_t) i); 1539 nChunkBytes += i; 1542 1540 totalbytes += i; 1543 1541 chunksize -= i; … … 1558 1556 else { 1559 1557 memset((char*) &buffer, 0x00, sizeof(buffer)); 1560 memcpy(buffer, chunkBytes, (size_t) nChunkBytes);1558 memcpy(buffer, chunkBytes, sizeof(buffer)); 1561 1559 nBufferBytes = nChunkBytes; 1562 1560 }
Note:
See TracChangeset
for help on using the changeset viewer.