summaryrefslogtreecommitdiffstats
path: root/src/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage.c b/src/storage.c
index ded9a535..f8064254 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -756,7 +756,7 @@ sdp_record_t *fetch_record(const gchar *src, const gchar *dst, const uint32_t ha
if (!str)
return NULL;
- size = strlen(str)/2;
+ size = strlen(str) / 2;
pdata = g_malloc0(size);
for (i = 0; i < size; i++) {
@@ -764,7 +764,7 @@ sdp_record_t *fetch_record(const gchar *src, const gchar *dst, const uint32_t ha
pdata[i] = (uint8_t) strtol(tmp, NULL, 16);
}
- rec = sdp_extract_pdu(pdata, &len);
+ rec = sdp_extract_pdu(pdata, size, &len);
free(str);
free(pdata);