aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-12 21:28:55 +0000
committerDavid Robillard <d@drobilla.net>2011-05-12 21:28:55 +0000
commitf07ed64923ab04fd4c608a17476e74e6271bc51d (patch)
treef63d9003498323d8ada1e744bd3f2bd33eabc7ff
parentc34688055ee24f9e8740a2832415c4b89f64486f (diff)
downloadserd-f07ed64923ab04fd4c608a17476e74e6271bc51d.tar.gz
serd-f07ed64923ab04fd4c608a17476e74e6271bc51d.tar.bz2
serd-f07ed64923ab04fd4c608a17476e74e6271bc51d.zip
Fix URI resolution off-by-one.
git-svn-id: http://svn.drobilla.net/serd/trunk@176 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--src/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env.c b/src/env.c
index 4011298d..64fccaac 100644
--- a/src/env.c
+++ b/src/env.c
@@ -163,7 +163,7 @@ serd_env_qualify(const SerdEnv* env,
prefix_uri->n_bytes)) {
*prefix_name = env->prefixes[i].name;
suffix->buf = uri->buf + prefix_uri->n_bytes;
- suffix->len = uri->n_bytes - prefix_uri->n_bytes - 1;
+ suffix->len = uri->n_bytes - prefix_uri->n_bytes;
return true;
}
}