summaryrefslogtreecommitdiffstats
path: root/compat/sdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/sdp.c')
-rw-r--r--compat/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/sdp.c b/compat/sdp.c
index 9463c94c..73015f88 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);