diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-20 01:10:11 +0300 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-10-20 01:10:11 +0300 | 
| commit | efcfad7c009502b2951a2408df3a94b83934e288 (patch) | |
| tree | 464e9094844e5a7e4e80a476088491608bed939e /lib | |
| parent | 0c1d6232e7b4c39d33dfcc759bd19f050d7953e7 (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.c | 6 | 
1 files changed, 3 insertions, 3 deletions
@@ -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);  | 
