summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-20 01:40:41 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-20 01:40:41 +0300
commitaf44ab3ae754e717e3c168b82f68a8be5f17cf61 (patch)
treef61b918b7560cbd36dbe4f79bda3785f149686b4 /compat
parentefcfad7c009502b2951a2408df3a94b83934e288 (diff)
downloadbluez-af44ab3ae754e717e3c168b82f68a8be5f17cf61.tar.gz
Fix another format string warning
Diffstat (limited to 'compat')
-rw-r--r--compat/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/sdp.c b/compat/sdp.c
index 9463c94cd..73015f88f 100644
--- a/compat/sdp.c
+++ b/compat/sdp.c
@@ -161,7 +161,7 @@ int get_stored_device_info(const bdaddr_t *src, const bdaddr_t *dst, struct hidp
req->country = country;
req->parser = parser;
- snprintf(req->name, 128, str + pos);
+ snprintf(req->name, 128, "%s", str + pos);
req->rd_size = strlen(desc) / 2;
req->rd_data = malloc(req->rd_size);