]> code.citadel.org Git - citadel.git/blobdiff - citadel/sysdep.c
* Protected cmd_move() from buffer overrun (no longer crashes the server)
[citadel.git] / citadel / sysdep.c
index 7d7b1d043ec98647b66cfb88aed2cd7482d5e375..e3421191171896538adbefb338bf0dc55d8d71d8 100644 (file)
@@ -397,7 +397,8 @@ void cprintf(const char *format, ...) {
  * Return values are:
  *     1       Requested number of bytes has been read.
  *     0       Request timed out.
- * If the socket breaks, the session is immediately terminated.
+ *     -1      The socket is broken.
+ * If the socket breaks, the session will be terminated.
  */
 int client_read_to(char *buf, int bytes, int timeout)
 {