diff options
author | David Robillard <d@drobilla.net> | 2012-01-18 17:35:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-18 17:35:07 +0000 |
commit | 32c2579e5a4aa32df26974f7f31063f9f499e906 (patch) | |
tree | 74ecec2abeb2e53b95df7eb1a3c92394f4a66d1b /src | |
parent | 886eaec350f143cfb3a97aa6f79b79bd5263c44a (diff) | |
download | lilv-32c2579e5a4aa32df26974f7f31063f9f499e906.tar.gz lilv-32c2579e5a4aa32df26974f7f31063f9f499e906.tar.bz2 lilv-32c2579e5a4aa32df26974f7f31063f9f499e906.zip |
Fix memory error (fix #810).
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3965 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -177,7 +177,7 @@ lilv_expand(const char* path) // Append variable value (or $VAR_NAME if not found) char* var = (char*)calloc(t - s, 1); memcpy(var, s + 1, t - s - 1); - append_var(out, &len, var); + out = append_var(out, &len, var); free(var); // Continue after variable reference @@ -188,7 +188,7 @@ lilv_expand(const char* path) } else if (*s == '~' && (*(s + 1) == '/' || !*(s + 1))) { // Hit ~ before slash or end of string (home directory reference) out = strappend(out, &len, start, s - start); - append_var(out, &len, "HOME"); + out = append_var(out, &len, "HOME"); start = ++s; } else { ++s; |