summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-03 20:55:12 +0000
committerDavid Robillard <d@drobilla.net>2012-01-03 20:55:12 +0000
commit01a8e74e7803f85932026b7214f3d4dc7ceb66cb (patch)
tree622a9b9a3da6b1ab2113680c590ac83406d9827f
parent578ff2b611a4c824c45fc4d6e684b6f5970eb702 (diff)
downloadlilv-01a8e74e7803f85932026b7214f3d4dc7ceb66cb.tar.gz
lilv-01a8e74e7803f85932026b7214f3d4dc7ceb66cb.tar.bz2
lilv-01a8e74e7803f85932026b7214f3d4dc7ceb66cb.zip
Fix memory error.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3910 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index f50557f..7d35f19 100644
--- a/src/state.c
+++ b/src/state.c
@@ -275,7 +275,7 @@ property_from_node(LilvWorld* world,
case LILV_VALUE_STRING:
prop->size = strlen(str) + 1;
prop->value = malloc(prop->size);
- memcpy(prop->value, str, prop->size + 1);
+ memcpy(prop->value, str, prop->size);
prop->type = map->map(map->handle, NS_ATOM "String");
break;
case LILV_VALUE_BOOL: