commit | 4d9b59c3efb269a6e2c9046ae3653f1c8fbdb3f6 | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <axilirator@gmail.com> | Fri Mar 09 02:54:45 2018 +0700 |
committer | Harald Welte <laforge@gnumonks.org> | Wed Mar 14 21:12:30 2018 +0000 |
tree | e591b9424639da545f042b47dd0f25a1df9278ed | |
parent | bd0efb0bea27b63a7dd9003dc36e4388978499b6 [diff] |
Transceiver.cpp: properly zero-terminate received commands Previously it was assumed that a sender should zero-terminate each command being sent. Otherwise, this could cause to printing garbage. Let's do this manually, using the length of received data as a position for '\0'. Change-Id: I69f413f33156c38a853efc5a8cdc66fbfb0ca6af