OSDN Git Service

AG: Clear the memory before using it
authorSatish Kodishala <skodisha@codeaurora.org>
Fri, 5 Feb 2016 07:05:54 +0000 (12:35 +0530)
committerLinux Build Service Account <lnxbuild@localhost>
Wed, 24 Aug 2016 14:09:17 +0000 (08:09 -0600)
commit8f0fe022382e6aeb6bcdb5849b4a20b00188fa9a
tree8c51fa607533c8e22cb108b22dd6ffbaf67c65b3
parentd12e93f18fa8fb6f2ba9f9bce6ce2f9d4fea09c8
AG: Clear the memory before using it

Initialize memory with 0s before copying the arguments
of AT commands received from headset. If buffer is not
initialized to 0s, when we encounter any unknown character
while parsing the arguments, we return error.

CRs-Fixed: 972767
Change-Id: Ia107ccd140b7bbc9e5963920d34fad22664c7519
bta/ag/bta_ag_cmd.c