Fix pointer arith.
Sending 3digit code, null, binary-length and data. Current code sends
3digit code, space, null, binary-length, binary-data.
The space should not be sent.
Change-Id: I1df00a3e70805b39b6105966c7f3c613461a6858
diff --git a/include/sysutils/SocketClient.h b/include/sysutils/SocketClient.h
index a298f25..4d7c4fa 100644
--- a/include/sysutils/SocketClient.h
+++ b/include/sysutils/SocketClient.h
@@ -45,14 +45,12 @@
int sendMsg(int code, const char *msg, bool addErrno);
int sendMsg(int code, const char *msg, bool addErrno, bool useCmdNum);
- // Provides a mechanism to send a response code to the client. The message uses
- // the same format as in sendMsg method above.
- // Sends the code, a space, and a null character.
+ // Provides a mechanism to send a response code to the client.
+ // Sends the code and a null character.
int sendCode(int code);
- // Provides a mechanism to send binary data to client. The message uses the
- // same format as in sendMsg method above.
- // Sends the code, a space, and a null character, followed by 4 bytes of
+ // Provides a mechanism to send binary data to client.
+ // Sends the code and a null character, followed by 4 bytes of
// big-endian length, and the data.
int sendBinaryMsg(int code, const void *data, int len);