Index: /branches/BNC_2.12/src/bnccaster.cpp
===================================================================
--- /branches/BNC_2.12/src/bnccaster.cpp	(revision 9189)
+++ /branches/BNC_2.12/src/bnccaster.cpp	(revision 9190)
@@ -359,5 +359,6 @@
         }
       }
-      _epochs.remove(epoTime);
+       //_epochs.remove(epoTime);
+      itEpo.remove();
     }
   }
Index: /branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
===================================================================
--- /branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp	(revision 9189)
+++ /branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp	(revision 9190)
@@ -746,5 +746,5 @@
         || co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
         || co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       int len = _ssrCorr->MakeClockOrbit(&co, _ssrCorr->COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
       if (len > 0) {
@@ -758,5 +758,5 @@
   else {
     if (co.NumberOfSat[CLOCKORBIT_SATGPS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -780,5 +780,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -801,5 +801,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -821,5 +821,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -840,5 +840,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -858,5 +858,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE];
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -886,5 +886,5 @@
       || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
       || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
-    char obuffer[CLOCKORBIT_BUFFERSIZE];
+    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
       int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
@@ -905,5 +905,5 @@
       || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0)
       && (_phaseBiasInformationDecoded)) {
-    char obuffer[CLOCKORBIT_BUFFERSIZE];
+    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
       int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
@@ -918,5 +918,5 @@
   QByteArray hlpBufferVtec;
   if (vtec.NumLayers > 0) {
-    char obuffer[CLOCKORBIT_BUFFERSIZE];
+    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
     int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
     if (len > 0) {
