Diff between fdb5ba2cbff3e8f1411ab188fa84b58879b92b83 and cfcc6346a96a9a4c3123ddc5bb395e079efe5205

Changed Files

File Additions Deletions Status
lib/sdp.c +1 -1 modified

Full Patch

diff --git a/lib/sdp.c b/lib/sdp.c
index 1565259..006ab05 100644
--- a/lib/sdp.c
+++ b/lib/sdp.c
@@ -1505,7 +1505,7 @@ static void *sdp_data_value(sdp_data_t *data, uint32_t *len)
 	case SDP_TEXT_STR32:
 		val = data->val.str;
 		if (len)
-			*len = data->unitSize - 1;
+			*len = data->unitSize - sizeof(uint8_t);
 		break;
 	case SDP_ALT8:
 	case SDP_ALT16: