diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2004-12-10 09:05:49 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2004-12-10 09:05:49 +0000 | 
| commit | 0e6eb45baedd15cc65beb454ec00cefb5fb7962d (patch) | |
| tree | d91208ccc16c1875dad8797e08c6e4459113e09a | |
| parent | 01a43396075f47dffb2d6fffc9a2d3bb713a7f8d (diff) | |
Fix UUID-32 to string translation
| -rw-r--r-- | src/sdp.c | 7 | 
1 files changed, 4 insertions, 3 deletions
@@ -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);  | 
