summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-20 01:10:11 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-10-20 01:10:11 +0300
commitefcfad7c009502b2951a2408df3a94b83934e288 (patch)
tree464e9094844e5a7e4e80a476088491608bed939e /lib
parent0c1d6232e7b4c39d33dfcc759bd19f050d7953e7 (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/sdp.c6
1 files changed, 3 insertions, 3 deletions
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);