random cumulative fixes/changes

This commit is contained in:
joonicks
2021-06-20 20:57:36 +02:00
parent 4bc79b2043
commit 405b34728f
19 changed files with 388 additions and 166 deletions

View File

@@ -501,6 +501,10 @@ void to_user(const char *target, const char *format, ...)
/*
* Read any data waiting on a socket or file descriptor
* and return any complete lines to the caller
*
* 1: Try to get a whole line from <rest> data
* 2: If <rest> data is insufficient, try to read in more
* 3: Try again to make a whole line
*/
char *sockread(int s, char *rest, char *line)
{