Changeset 9462 in ntrip


Ignore:
Timestamp:
Jun 8, 2021, 11:28:14 PM (3 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/ntripserver.c

    r9461 r9462  
    15361536              i = chunksize;
    15371537            }
    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;
    15421540            totalbytes += i;
    15431541            chunksize -= i;
     
    15581556      else {
    15591557        memset((char*) &buffer, 0x00, sizeof(buffer));
    1560         memcpy(buffer, chunkBytes, (size_t) nChunkBytes);
     1558        memcpy(buffer, chunkBytes, sizeof(buffer));
    15611559        nBufferBytes = nChunkBytes;
    15621560      }
Note: See TracChangeset for help on using the changeset viewer.