summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-30 18:28:41 -0400
committerDavid Robillard <d@drobilla.net>2023-05-01 13:15:50 -0400
commit1f73daa1dd55d7889c30c4b0893b541266aa460c (patch)
tree5d9bfb00dcea42ed395db5bba6f648ed35051543 /src
parented6ae993e3889e2243cb0387e5d53398b118749d (diff)
downloadsratom-1f73daa1dd55d7889c30c4b0893b541266aa460c.tar.gz
sratom-1f73daa1dd55d7889c30c4b0893b541266aa460c.tar.bz2
sratom-1f73daa1dd55d7889c30c4b0893b541266aa460c.zip
Constrain relative URI references to the base URI
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sratom.c b/src/sratom.c
index d2c18ef..447abef 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -800,7 +800,7 @@ read_node(Sratom* sratom,
serd_uri_parse((const uint8_t*)str, &uri);
SerdNode rel =
- serd_node_new_relative_uri(&uri, &sratom->base, NULL, NULL);
+ serd_node_new_relative_uri(&uri, &sratom->base, &sratom->base, NULL);
uint8_t* path = serd_file_uri_parse(rel.buf, NULL);
if (path) {
lv2_atom_forge_path(