checked getline return value in client main
i hope these comints are sort of intelligent cause im drunk as hell :dd
This commit is contained in:
parent
3d6f2b8293
commit
f71d3954f0
@ -66,7 +66,8 @@ int main(void)
|
||||
|
||||
for (;;)
|
||||
{
|
||||
getline(&line, &line_length, stdin);
|
||||
if (getline(&line, &line_length, stdin) == -1) why2_die("Reading input failed.");
|
||||
|
||||
printf(WHY2_CLEAR_AND_GO_UP);
|
||||
|
||||
why2_send_socket(line, "anon", listen_socket);
|
||||
|
Loading…
x
Reference in New Issue
Block a user