Diff between 5af8a574eb409241f5801e9da73be00a3e8eb0c9 and 8baa84b767240d96691c9e5807092938b5a35edd
Changed Files
| File | Additions | Deletions | Status |
| android/client/textconv.c | +2 | -1 | modified |
Full Patch
diff --git a/android/client/textconv.c b/android/client/textconv.c
index 18f60ee..4def3da 100644
--- a/android/client/textconv.c
+++ b/android/client/textconv.c
@@ -253,7 +253,8 @@ char *btproperty2str(const bt_property_t *property)
switch (property->type) {
case BT_PROPERTY_BDNAME:
case BT_PROPERTY_REMOTE_FRIENDLY_NAME:
- sprintf(p, "%s", ((bt_bdname_t *) property->val)->name);
+ snprintf(p, property->len + 1, "%s",
+ ((bt_bdname_t *) property->val)->name);
break;
case BT_PROPERTY_BDADDR: