From 0e6eb45baedd15cc65beb454ec00cefb5fb7962d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 10 Dec 2004 09:05:49 +0000 Subject: Fix UUID-32 to string translation --- src/sdp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sdp.c b/src/sdp.c index 7c3bd7d7..f138f1b3 100644 --- a/src/sdp.c +++ b/src/sdp.c @@ -181,10 +181,11 @@ static int uuid2str(struct tupla *message, const uuid_t *uuid, char *str, size_t snprintf(str, n, str2); break; case SDP_UUID32: - snprintf(str, n, "Error: This is uuid32"); - return -3; + str2 = string_lookup(message, uuid->value.uuid32); + snprintf(str, n, str2); + break; case SDP_UUID128: - snprintf(str, n, "Error: This is uuid128"); + snprintf(str, n, "Error: This is UUID-128"); return -4; default: snprintf(str, n, "Type of UUID (%x) unknown.", uuid->type); -- cgit