diff options
Diffstat (limited to 'src/uri.c')
-rw-r--r-- | src/uri.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |