diff --git a/map1 b/map1
new file mode 100755
index 0000000000000000000000000000000000000000..762177e9c2da675e01c8c8b88e5a7c7ea1c259c8
Binary files /dev/null and b/map1 differ
diff --git a/map2 b/map2
new file mode 100755
index 0000000000000000000000000000000000000000..7b09bc1ff3491c08ad2e1daca4cb5a233e5eafad
Binary files /dev/null and b/map2 differ
diff --git a/reduce1 b/reduce1
new file mode 100755
index 0000000000000000000000000000000000000000..6a9163ecdb57a7bf13bab20cda19679464e7e140
Binary files /dev/null and b/reduce1 differ
diff --git a/reduce2 b/reduce2
new file mode 100755
index 0000000000000000000000000000000000000000..09eefb493e038260e6cadadf2fc89640c8839c97
Binary files /dev/null and b/reduce2 differ
diff --git a/src/TcpSocket.cpp b/src/TcpSocket.cpp
index ec7994a1e0955541ab9f618828fd8d5bec17e60c..fb93f62ee0e72e1173b8adc922cdaf081cccc7a9 100644
--- a/src/TcpSocket.cpp
+++ b/src/TcpSocket.cpp
@@ -195,7 +195,7 @@ void TcpSocket::sendLines(int sockfd, string filename, vector<string> starts)
 			bzero(buf, sizeof(buf));
 			bufInd = 0;
 		}
-		fread(buf + bufInd, sizeof(char), str.size(), str.c_str());
+		str.copy(buf + bufInd, str.size());
 		bufInd += str.size();
 		if (lineCounter >= (start+T_maples-1)){
 			startInd++;