diff options
-rw-r--r-- | test/lilv_test_uri_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lilv_test_uri_map.h b/test/lilv_test_uri_map.h index 832b723..00b5226 100644 --- a/test/lilv_test_uri_map.h +++ b/test/lilv_test_uri_map.h @@ -51,7 +51,7 @@ map_uri(LV2_URID_Map_Handle handle, const char* uri) assert(serd_uri_string_has_scheme((const uint8_t*)uri)); map->uris = (char**)realloc(map->uris, ++map->n_uris * sizeof(char*)); - map->uris[map->n_uris - 1] = calloc(1, uri_len + 1); + map->uris[map->n_uris - 1] = (char*)calloc(1, uri_len + 1); memcpy(map->uris[map->n_uris - 1], uri, uri_len + 1); return map->n_uris; } |