]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/ctdlclient.c
Got it! Temporarily working with the server-side C renderer
[citadel.git] / webcit-ng / ctdlclient.c
index b6f204aad49b2fefb2dc34be703210dc0edbf265..a75d18a02eb25cb08e9973e16df07593cc7b45e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Functions that handle communication with a Citadel Server
  *
- * Copyright (c) 1987-2016 by the citadel.org team
+ * Copyright (c) 1987-2018 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 3.
@@ -28,7 +28,7 @@ int ctdl_readline(struct ctdlsession *ctdl, char *buf, int maxbytes)
        int len = 0;
        int c = 0;
 
-       if (buf == NULL) return;
+       if (buf == NULL) return(-1);
 
        while (len < maxbytes) {
                c = read(ctdl->sock, &buf[len], 1);