Commit: d205d58b285542f845d59cab24793de7c12f4aca
Parent: 01d85fdf6a45150e82143803be3373d779d18522
Author: Chevallier Maxime <maxime.chevallier@openwide.fr>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2016-02-26 13:50:11
Tree: ea7f1582f2c8c4ab08de89f2cf32122b09788577

tools/btgatt-client: Fix write-value byte parsing write-value, write-long-value and write-prepare were parsing bytes using strtol with base '0' and restraining wtring size to be exactly 2, forbidding to write values over 99. The string length is no more checked, we instead check that the parsed value is in the correct range.

Diffstat

M tools/btgatt-client.c | 41 +++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 13 insertions(+), 28 deletions(-)

View Full Diff | Patch