From efcfad7c009502b2951a2408df3a94b83934e288 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 20 Oct 2008 01:10:11 +0300 Subject: Get rid of format string warnings with recent gcc versions Recent gcc versions, like 4.3.2 from ubuntu intrepid, give warnings like "format not a string literal and no format arguments" without this patch. --- lib/sdp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/sdp.c b/lib/sdp.c index 14c08ad9..a0a4dd36 100644 --- a/lib/sdp.c +++ b/lib/sdp.c @@ -249,15 +249,15 @@ static int uuid2str(struct tupla *message, const uuid_t *uuid, char *str, size_t switch (uuid->type) { case SDP_UUID16: str2 = string_lookup(message, uuid->value.uuid16); - snprintf(str, n, str2); + snprintf(str, n, "%s", str2); break; case SDP_UUID32: str2 = string_lookup(message, uuid->value.uuid32); - snprintf(str, n, str2); + snprintf(str, n, "%s", str2); break; case SDP_UUID128: str2 = string_lookup_uuid(message, uuid); - snprintf(str, n, str2); + snprintf(str, n, "%s", str2); break; default: snprintf(str, n, "Type of UUID (%x) unknown.", uuid->type); -- cgit