diff options
author | San Mehat <san@google.com> | 2009-05-26 15:18:25 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-05-29 15:25:45 -0700 |
commit | 03f0d27f6c49530a91402ed42f8ca4b2fda04b9f (patch) | |
tree | f42e73737f3443b33e6b9e89c45e6df834e58984 /libsysutils/src/SocketClient.cpp | |
parent | ebefc48e61a7d5cf2a3228e6c8729feeeb42d1b4 (diff) |
libsysutils: Fix command argument passing bug + whitespace cleanup
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'libsysutils/src/SocketClient.cpp')
-rw-r--r-- | libsysutils/src/SocketClient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsysutils/src/SocketClient.cpp b/libsysutils/src/SocketClient.cpp index b229627ff..f0e846f4f 100644 --- a/libsysutils/src/SocketClient.cpp +++ b/libsysutils/src/SocketClient.cpp @@ -16,7 +16,7 @@ SocketClient::SocketClient(int socket) { int SocketClient::sendMsg(int code, const char *msg, bool addErrno) { char *buf; - + if (addErrno) { buf = (char *) alloca(strlen(msg) + strlen(strerror(errno)) + 8); sprintf(buf, "%.3d %s (%s)", code, msg, strerror(errno)); @@ -42,7 +42,7 @@ int SocketClient::sendMsg(const char *msg) { strcat(tmp, "\n"); bp = tmp; } - + int rc = 0; const char *p = bp; int brtw = strlen(bp); |