Changeset 9189 in ntrip for trunk


Ignore:
Timestamp:
Oct 29, 2020, 12:00:21 PM (3 years ago)
Author:
stuerze
Message:

small bufg fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r9179 r9189  
    748748        || co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
    749749        || co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    750       char obuffer[CLOCKORBIT_BUFFERSIZE];
     750      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    751751      int len = _ssrCorr->MakeClockOrbit(&co, _ssrCorr->COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    752752      if (len > 0) {
     
    760760  else {
    761761    if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) {
    762       char obuffer[CLOCKORBIT_BUFFERSIZE];
     762      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    763763      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    764764        co.UpdateInterval = ephUpdInd;
     
    782782    }
    783783    if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    784       char obuffer[CLOCKORBIT_BUFFERSIZE];
     784      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    785785      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    786786        co.UpdateInterval = ephUpdInd;
     
    803803    }
    804804    if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
    805       char obuffer[CLOCKORBIT_BUFFERSIZE];
     805      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    806806      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    807807        co.UpdateInterval = ephUpdInd;
     
    823823    }
    824824    if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
    825       char obuffer[CLOCKORBIT_BUFFERSIZE];
     825      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    826826      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    827827        co.UpdateInterval = ephUpdInd;
     
    842842    }
    843843    if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
    844       char obuffer[CLOCKORBIT_BUFFERSIZE];
     844      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    845845      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    846846        co.UpdateInterval = ephUpdInd;
     
    860860    }
    861861    if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    862       char obuffer[CLOCKORBIT_BUFFERSIZE];
     862      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    863863      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    864864        co.UpdateInterval = ephUpdInd;
     
    888888      || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
    889889      || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    890     char obuffer[CLOCKORBIT_BUFFERSIZE];
     890    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    891891    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    892892      int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    907907      || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0)
    908908      && (_phaseBiasInformationDecoded)) {
    909     char obuffer[CLOCKORBIT_BUFFERSIZE];
     909    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    910910    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    911911      int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    920920  QByteArray hlpBufferVtec;
    921921  if (vtec.NumLayers > 0) {
    922     char obuffer[CLOCKORBIT_BUFFERSIZE];
     922    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
    923923    int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
    924924    if (len > 0) {
Note: See TracChangeset for help on using the changeset viewer.