about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-16 12:27:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-16 12:27:34 -0700
commit50e24bd43b74b552efc924aa3583a76496700799 (patch)
treef1114fb34c05a3d6807d7e0702ed91954f2db837
parentf03c9c05494997d4d1d64594fd357170f45d2da2 (diff)
downloadmu-50e24bd43b74b552efc924aa3583a76496700799.tar.gz
3508
-rw-r--r--091socket.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/091socket.cc b/091socket.cc
index 79f091b8..23cdfb75 100644
--- a/091socket.cc
+++ b/091socket.cc
@@ -154,7 +154,7 @@ case _READ_FROM_SOCKET: {
   int bytes_read = read(socket_fd, contents, bytes - 1 /* null-terminated */);
 //?   cerr << "Read:\n" << string(contents) << "\n";
   products.resize(2);
-  products.at(0).push_back(new_mu_text(string(contents)));
+  products.at(0).push_back(new_mu_text(contents));
   products.at(1).push_back(bytes_read);
   break;
 }
@@ -175,7 +175,7 @@ case _WRITE_TO_SOCKET: {
 case _WRITE_TO_SOCKET: {
   long long int x = static_cast<long long int>(ingredients.at(0).at(0));
   socket_t* session = reinterpret_cast<socket_t*>(x);
-  // Write one character to a session at a time.
+  // write just one character at a time to the session socket
   long long int y = static_cast<long long int>(ingredients.at(1).at(0));
   char c = static_cast<char>(y);
   if (write(session->fd, &c, 1) != 1) {