diff options
author | David Robillard <d@drobilla.net> | 2012-01-03 20:55:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-03 20:55:12 +0000 |
commit | 01a8e74e7803f85932026b7214f3d4dc7ceb66cb (patch) | |
tree | 622a9b9a3da6b1ab2113680c590ac83406d9827f | |
parent | 578ff2b611a4c824c45fc4d6e684b6f5970eb702 (diff) | |
download | lilv-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.c | 2 |
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: |