Parent: 66b9d4c7a041d75811b35e7bed0f111914b9397c
Author: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-09-16 11:32:06
Tree: d8cbb7b4c782420fbc5c39df4d009637bb604220
avrcp: fix overwrite of number of attributes The response of GetCurrentPlayerApplicationSettingValue expects the first operand to be the number of attributes in response. Since we start with len=0, we were overwriting this number with the value of the first attribute. Also use g_memdup instead of g_malloc + memcpy.
Diffstat
| M | audio/avrcp.c | | | 12 | +++++- - - - - - - |
1 files changed, 5 insertions(+), 7 deletions(-)