summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-03 02:22:50 +0000
committerDavid Robillard <d@drobilla.net>2012-08-03 02:22:50 +0000
commit6e2098398135804da9b397ad22137ee0ff14dea0 (patch)
tree7cab951ccd4aebd036f47cab3f0f2f97f1b2dde0
parenteb33777e6ab2f9ebd5f398bb9c9a9ae92ac3531d (diff)
downloadsuil-6e2098398135804da9b397ad22137ee0ff14dea0.tar.gz
suil-6e2098398135804da9b397ad22137ee0ff14dea0.tar.bz2
suil-6e2098398135804da9b397ad22137ee0ff14dea0.zip
Fix memory errors introduced in r4603.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4605 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index 951b12f..e4c521f 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -95,8 +95,8 @@ open_wrapper(SuilHost* host,
const char* const mod_dir = env_dir ? env_dir : SUIL_MODULE_DIR;
const size_t path_len = strlen(mod_dir)
+ + strlen(SUIL_DIR_SEP SUIL_MODULE_PREFIX SUIL_MODULE_EXT)
+ strlen(module_name)
- + strlen(SUIL_MODULE_EXT)
+ 2;
char* const path = calloc(path_len, 1);