summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-31 17:10:51 -0400
committerDavid Robillard <d@drobilla.net>2016-07-31 17:10:51 -0400
commit93479309fc791000018d657266549358357ff208 (patch)
tree7902b7940b50d92b58241ed66cd9010ee905db4f /utils
parentd87785a18d5f9ee409b794b33250c05ca8acc950 (diff)
downloadlilv-93479309fc791000018d657266549358357ff208.tar.gz
lilv-93479309fc791000018d657266549358357ff208.tar.bz2
lilv-93479309fc791000018d657266549358357ff208.zip
Fix compilation with C++ compilers
Diffstat (limited to 'utils')
-rw-r--r--utils/uri_table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/uri_table.h b/utils/uri_table.h
index 6a27c61..880d560 100644
--- a/utils/uri_table.h
+++ b/utils/uri_table.h
@@ -54,7 +54,7 @@ uri_table_map(LV2_URID_Map_Handle handle,
const size_t len = strlen(uri);
table->uris = (char**)realloc(table->uris, ++table->n_uris * sizeof(char*));
- table->uris[table->n_uris - 1] = malloc(len + 1);
+ table->uris[table->n_uris - 1] = (char*)malloc(len + 1);
memcpy(table->uris[table->n_uris - 1], uri, len + 1);
return table->n_uris;
}