Changeset 9190 in ntrip for branches/BNC_2.12


Ignore:
Timestamp:
Oct 29, 2020, 12:10:40 PM (4 years ago)
Author:
stuerze
Message:

small bug fixed

Location:
branches/BNC_2.12/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bnccaster.cpp

    r9097 r9190  
    359359        }
    360360      }
    361       _epochs.remove(epoTime);
     361       //_epochs.remove(epoTime);
     362      itEpo.remove();
    362363    }
    363364  }
  • branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp

    r9180 r9190  
    746746        || co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
    747747        || co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    748       char obuffer[CLOCKORBIT_BUFFERSIZE];
     748      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    749749      int len = _ssrCorr->MakeClockOrbit(&co, _ssrCorr->COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    750750      if (len > 0) {
     
    758758  else {
    759759    if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) {
    760       char obuffer[CLOCKORBIT_BUFFERSIZE];
     760      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    761761      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    762762        co.UpdateInterval = ephUpdInd;
     
    780780    }
    781781    if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    782       char obuffer[CLOCKORBIT_BUFFERSIZE];
     782      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    783783      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    784784        co.UpdateInterval = ephUpdInd;
     
    801801    }
    802802    if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
    803       char obuffer[CLOCKORBIT_BUFFERSIZE];
     803      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    804804      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    805805        co.UpdateInterval = ephUpdInd;
     
    821821    }
    822822    if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
    823       char obuffer[CLOCKORBIT_BUFFERSIZE];
     823      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    824824      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    825825        co.UpdateInterval = ephUpdInd;
     
    840840    }
    841841    if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
    842       char obuffer[CLOCKORBIT_BUFFERSIZE];
     842      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    843843      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    844844        co.UpdateInterval = ephUpdInd;
     
    858858    }
    859859    if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    860       char obuffer[CLOCKORBIT_BUFFERSIZE];
     860      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    861861      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    862862        co.UpdateInterval = ephUpdInd;
     
    886886      || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
    887887      || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    888     char obuffer[CLOCKORBIT_BUFFERSIZE];
     888    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    889889    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    890890      int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    905905      || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0)
    906906      && (_phaseBiasInformationDecoded)) {
    907     char obuffer[CLOCKORBIT_BUFFERSIZE];
     907    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    908908    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    909909      int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    918918  QByteArray hlpBufferVtec;
    919919  if (vtec.NumLayers > 0) {
    920     char obuffer[CLOCKORBIT_BUFFERSIZE];
     920    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    921921    int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
    922922    if (len > 0) {
Note: See TracChangeset for help on using the changeset viewer.