Changeset 10221 in ntrip for trunk/BNC/src/upload


Ignore:
Timestamp:
Oct 6, 2023, 12:31:04 PM (14 months ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/upload
Files:
2 edited

Legend:

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

    r10124 r10221  
    862862    }
    863863    if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    864       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     864      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    865865      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    866866        co.UpdateInterval = ephUpdInd;
     
    883883    }
    884884    if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
    885       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     885      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    886886      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    887887        co.UpdateInterval = ephUpdInd;
     
    903903    }
    904904    if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
    905       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     905      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    906906      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    907907        co.UpdateInterval = ephUpdInd;
     
    922922    }
    923923    if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
    924       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     924      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    925925      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    926926        co.UpdateInterval = ephUpdInd;
     
    940940    }
    941941    if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    942       char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     942      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    943943      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    944944        co.UpdateInterval = ephUpdInd;
     
    968968      || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
    969969      || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
    970     char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     970    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    971971    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    972972      int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    987987      || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0)
    988988      && (_phaseBiasInformationDecoded)) {
    989     char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     989    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    990990    if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    991991      int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
     
    10001000  QByteArray hlpBufferVtec;
    10011001  if (vtec.NumLayers > 0) {
    1002     char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     1002    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
    10031003    int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
    10041004    if (len > 0) {
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r9853 r10221  
    294294    msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1()
    295295        + "\r\n" + "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n";
     296    _outSocket->write(msg);
     297    _outSocket->waitForBytesWritten();
     298    _outSocket->waitForReadyRead();
    296299  } else {
    297300    msg = "POST " + _postExtension.toLatin1() + "/" + _mountpoint.toLatin1()
     
    301304        + "User-Agent: NTRIP BNC/" BNCVERSION " (" + BNC_OS + ")\r\n"
    302305        + "Connection: close\r\n" + "Transfer-Encoding: chunked\r\n\r\n";
    303   }
    304   _outSocket->write(msg);
    305   _outSocket->waitForBytesWritten();
    306   _outSocket->waitForReadyRead();
     306    _outSocket->write(msg);
     307    _outSocket->waitForBytesWritten();
     308    _outSocket->waitForReadyRead();
     309  }
    307310
    308311   QByteArray ans = _outSocket->readAll();
Note: See TracChangeset for help on using the changeset viewer.