From f01c686997700495ba1d7c2a3bdeb49cc3c6d9d4 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 27 Mar 2012 14:07:10 +0200 Subject: [PATCH] Fix compiling of DTSC version branch. --- Connector_RAW/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connector_RAW/main.cpp b/Connector_RAW/main.cpp index b77fc5d3..5ef11a50 100644 --- a/Connector_RAW/main.cpp +++ b/Connector_RAW/main.cpp @@ -22,7 +22,7 @@ int main(int argc, char ** argv) { } //transport ~50kb at a time //this is a nice tradeoff between CPU usage and speed - char buffer[50000]; + const char buffer[50000] = {0}; while(std::cout.good() && S.read(buffer,50000)){std::cout.write(buffer,50000);} S.close(); return 0;