Changeset 9463 in ntrip
- Timestamp:
- Jun 9, 2021, 9:37:37 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripserver/ntripserver.c
r9462 r9463 1500 1500 int chunksize = 0; 1501 1501 int totalbytes = 0; 1502 int nChunkBytes = 0;1503 1502 char chunkBytes[BUFSZ] = { 0 }; 1504 1503 … … 1536 1535 i = chunksize; 1537 1536 } 1538 memcpy(chunkBytes + nChunkBytes, buffer + pos, (size_t) i); 1539 nChunkBytes += i; 1537 memcpy(chunkBytes + totalbytes, buffer + pos, (size_t) i); 1540 1538 totalbytes += i; 1541 1539 chunksize -= i; … … 1557 1555 memset((char*) &buffer, 0x00, sizeof(buffer)); 1558 1556 memcpy(buffer, chunkBytes, sizeof(buffer)); 1559 nBufferBytes = nChunkBytes;1557 nBufferBytes = totalbytes; 1560 1558 } 1561 1559 }
Note:
See TracChangeset
for help on using the changeset viewer.