From af44ab3ae754e717e3c168b82f68a8be5f17cf61 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 20 Oct 2008 01:40:41 +0300 Subject: Fix another format string warning --- compat/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compat') 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); -- cgit