Romain Vimont 669e9a8d1e Fix "ip route" parsing
If a line did not end with '\r', then the final `\n' was replaced by
'\0' for parsing the current line. This `\0` was then mistakenly
considered as the end of the whole "ip route" output, so the remaining
lines were not parsed, causing "scrcpy --tcpip" to fail in some cases.

To fix the issue, read the final character of the current line before it
is (possibly) overwritten by '\0'.
2023-04-02 19:30:23 +02:00
..
2023-04-02 19:30:23 +02:00
2023-03-12 02:04:57 +01:00
2022-02-06 14:39:51 +01:00
2021-11-24 21:44:29 +01:00
2023-03-10 22:22:15 +01:00
2022-02-20 23:59:35 +01:00