summaryrefslogtreecommitdiff
path: root/profiles/gap
diff options
context:
space:
mode:
authorJukka Taimisto <jukka.taimisto@codenomicon.com>2015-01-20 11:23:31 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2015-01-20 12:40:43 +0200
commit91ce0439f562f76b6f7895afd37116f6fed82ae9 (patch)
treeee4a84d58b2272131a716a9c437b7017ca03355c /profiles/gap
parent4977100c5c0d843cec9d61c304dcea52db9b9053 (diff)
downloadbluez-91ce0439f562f76b6f7895afd37116f6fed82ae9.tar.gz
profiles/gap: Change len parameter of name2utf8() to uint16_t
When device name is read its length is of type uint16_t, change the type of length parameter of name2utf8() to uint16_t to avoid unnecessary truncation.
Diffstat (limited to 'profiles/gap')
-rw-r--r--profiles/gap/gas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/gap/gas.c b/profiles/gap/gas.c
index 90b2b4f2e..f737949ee 100644
--- a/profiles/gap/gas.c
+++ b/profiles/gap/gas.c
@@ -73,7 +73,7 @@ static int cmp_device(gconstpointer a, gconstpointer b)
return gas->device == device ? 0 : -1;
}
-static char *name2utf8(const uint8_t *name, uint8_t len)
+static char *name2utf8(const uint8_t *name, uint16_t len)
{
char utf8_name[HCI_MAX_NAME_LENGTH + 2];
int i;