aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.h b/socket.h
index fdc395d9..c493daa6 100644
--- a/socket.h
+++ b/socket.h
@@ -20,7 +20,7 @@ int SockOpen(const char *host, int clientPort, const char *options,
Get a string terminated by an '\n' (matches interface of fgets).
Pass it a valid socket, a buffer for the string, and
the length of the buffer (including the trailing \0)
-returns buffer on success, NULL on failure.
+returns length of buffer on success, -1 on failure.
*/
int SockRead(int sock, char *buf, int len);