summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-09-05 09:52:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-09-05 09:52:42 +0000
commit6d83e9274971235c05b40349dbbaf3f826853ff5 (patch)
treeb74d305fb74795fb22c10b900791d18dad575506
parent8bbf32450b3c72f5e8457feb825da029f3ecc76e (diff)
Print only unitSize length of the strings
-rw-r--r--src/sdp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sdp.c b/src/sdp.c
index f961c7d3..c59a6157 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -1149,13 +1149,13 @@ void sdp_record_print(const sdp_record_t *rec)
{
sdp_data_t *d = sdp_data_get(rec, SDP_ATTR_SVCNAME_PRIMARY);
if (d)
- printf("Service Name: %s\n", d->val.str);
+ printf("Service Name: %.*s\n", d->unitSize, d->val.str);
d = sdp_data_get(rec, SDP_ATTR_SVCDESC_PRIMARY);
if (d)
- printf("Service Description: %s\n", d->val.str);
+ printf("Service Description: %.*s\n", d->unitSize, d->val.str);
d = sdp_data_get(rec, SDP_ATTR_PROVNAME_PRIMARY);
if (d)
- printf("Service Provider: %s\n", d->val.str);
+ printf("Service Provider: %.*s\n", d->unitSize, d->val.str);
}
#ifdef SDP_DEBUG