summaryrefslogtreecommitdiffstats
path: root/src/storage.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-06 02:02:03 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-06 02:02:03 +0200
commitd39e08cc5483dc924f3b764b87042fb6aebb722d (patch)
tree32ef5b7b9201a631f1bb09e202b3dd70db8ac44b /src/storage.c
parent752eb63024b86444a8395954ff51d5eaf7d77550 (diff)
Convert SDP *_safe functions to default API
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);