Changeset 9463 in ntrip


Ignore:
Timestamp:
Jun 9, 2021, 9:37:37 AM (3 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ntripserver/ntripserver.c

    r9462 r9463  
    15001500      int chunksize = 0;
    15011501      int totalbytes = 0;
    1502       int nChunkBytes = 0;
    15031502      char chunkBytes[BUFSZ] = { 0 };
    15041503
     
    15361535              i = chunksize;
    15371536            }
    1538             memcpy(chunkBytes + nChunkBytes, buffer + pos, (size_t) i);
    1539             nChunkBytes += i;
     1537            memcpy(chunkBytes + totalbytes, buffer + pos, (size_t) i);
    15401538            totalbytes += i;
    15411539            chunksize -= i;
     
    15571555        memset((char*) &buffer, 0x00, sizeof(buffer));
    15581556        memcpy(buffer, chunkBytes, sizeof(buffer));
    1559         nBufferBytes = nChunkBytes;
     1557        nBufferBytes = totalbytes;
    15601558      }
    15611559    }
Note: See TracChangeset for help on using the changeset viewer.