diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-09-05 09:52:42 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-09-05 09:52:42 +0000 |
commit | 6d83e9274971235c05b40349dbbaf3f826853ff5 (patch) | |
tree | b74d305fb74795fb22c10b900791d18dad575506 | |
parent | 8bbf32450b3c72f5e8457feb825da029f3ecc76e (diff) |
Print only unitSize length of the strings
-rw-r--r-- | src/sdp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |