aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-30 17:20:21 +0200
committerDavid Robillard <d@drobilla.net>2018-09-30 17:20:21 +0200
commitf0bc2210cdcbb0d641e3a723ca23409afe615535 (patch)
tree98ac3edb553ef013096d204f633089a2e7af7744 /src/uri.c
parenta5b040e33d00a8d6eab1ba8167f5ccaecbbfbc75 (diff)
downloadserd-f0bc2210cdcbb0d641e3a723ca23409afe615535.tar.gz
serd-f0bc2210cdcbb0d641e3a723ca23409afe615535.tar.bz2
serd-f0bc2210cdcbb0d641e3a723ca23409afe615535.zip
Fix calloc argument order
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uri.c b/src/uri.c
index 6ec6f1c7..249b2674 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -60,7 +60,7 @@ serd_file_uri_parse(const uint8_t* uri, uint8_t** hostname)
return NULL;
}
if (hostname) {
- *hostname = (uint8_t*)calloc(1, path - auth + 1);
+ *hostname = (uint8_t*)calloc(path - auth + 1, 1);
memcpy(*hostname, auth, path - auth);
}
}