Follow-up Comment #8, bug #18254 (project freeciv):
> The problem is that it is overwriting the value returned by
> read() [0 means EOF, -1 error].
Actually, this is wrong. The problem is that when getline() gets empty string,
'didget' is set to 0. 0 is considered as EOF (because the code is also used
for read()) and then the input is ignored.
The patch remains good and still fixes the issue.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18254>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev