Index: trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 10124)
+++ trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 10221)
@@ -862,5 +862,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -883,5 +883,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATGALILEO] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -903,5 +903,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATQZSS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -922,5 +922,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATSBAS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -940,5 +940,5 @@
     }
     if (co.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
-      char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+      char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
       if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
         co.UpdateInterval = ephUpdInd;
@@ -968,5 +968,5 @@
       || bias.NumberOfSat[CLOCKORBIT_SATSBAS] > 0
       || bias.NumberOfSat[CLOCKORBIT_SATBDS] > 0) {
-    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
     if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
       int len = _ssrCorr->MakeCodeBias(&bias, _ssrCorr->CBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
@@ -987,5 +987,5 @@
       || phasebias.NumberOfSat[CLOCKORBIT_SATBDS] > 0)
       && (_phaseBiasInformationDecoded)) {
-    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
     if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
       int len = _ssrCorr->MakePhaseBias(&phasebias, _ssrCorr->PBTYPE_AUTO, 0, obuffer, sizeof(obuffer));
@@ -1000,5 +1000,5 @@
   QByteArray hlpBufferVtec;
   if (vtec.NumLayers > 0) {
-    char obuffer[CLOCKORBIT_BUFFERSIZE] = {0};
+    char obuffer[CLOCKORBIT_BUFFERSIZE] = {'\0'};
     int len = _ssrCorr->MakeVTEC(&vtec, 0, obuffer, sizeof(obuffer));
     if (len > 0) {
Index: trunk/BNC/src/upload/bncuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 10124)
+++ trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 10221)
@@ -294,4 +294,7 @@
     msg = "SOURCE " + _password.toLatin1() + " /" + _mountpoint.toLatin1()
         + "\r\n" + "Source-Agent: NTRIP BNC/" BNCVERSION "\r\n\r\n";
+    _outSocket->write(msg);
+    _outSocket->waitForBytesWritten();
+    _outSocket->waitForReadyRead();
   } else {
     msg = "POST " + _postExtension.toLatin1() + "/" + _mountpoint.toLatin1()
@@ -301,8 +304,8 @@
         + "User-Agent: NTRIP BNC/" BNCVERSION " (" + BNC_OS + ")\r\n"
         + "Connection: close\r\n" + "Transfer-Encoding: chunked\r\n\r\n";
-  }
-  _outSocket->write(msg);
-  _outSocket->waitForBytesWritten();
-  _outSocket->waitForReadyRead();
+    _outSocket->write(msg);
+    _outSocket->waitForBytesWritten();
+    _outSocket->waitForReadyRead();
+  }
 
    QByteArray ans = _outSocket->readAll();
