diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-01-09 18:11:04 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-09 18:23:08 +0200 |
commit | 091616204cca0b5b8464ee2a07b4cea01c4bde4d (patch) | |
tree | 6fd43ff4b076d65044e33c6a55d2080678b38834 /lib | |
parent | 5415f0b8c12ae34c7b81b013fca0a3c2706bcb6e (diff) |
lib/sdp: Fix incorrect sizeof argument
length is a pointer to int table not int* table.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4773,7 +4773,7 @@ int sdp_set_supp_feat(sdp_record_t *rec, const sdp_list_t *sf) free(dtds); goto fail; } - lengths = malloc(plen * sizeof(int *)); + lengths = malloc(plen * sizeof(int)); if (!lengths) { free(dtds); free(vals); |