5d6bd8f9cd
The parser assumed that its input was a NUL-terminated string, but it was not the case: it is just the raw output of "adb devices ip route". In practice, it was harmless, since the output always ended with '\n' (which was replaced by '\0' on truncation), but it was incorrect nonetheless. Always write a '\0' at the end of the buffer, and explicitly parse as a NUL-terminated string. For that purpose, avoid the error-prone sc_str_truncate() util function. |
||
---|---|---|
.. | ||
test_adb_parser.c | ||
test_buffer_util.c | ||
test_cbuf.c | ||
test_cli.c | ||
test_clock.c | ||
test_control_msg_serialize.c | ||
test_device_msg_deserialize.c | ||
test_queue.c | ||
test_str.c | ||
test_strbuf.c |