diff options
-rw-r--r-- | src/util/plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/plugin.c b/src/util/plugin.c index ca93e9ca0..567b401c4 100644 --- a/src/util/plugin.c +++ b/src/util/plugin.c | |||
@@ -97,10 +97,10 @@ plugin_init () | |||
97 | { | 97 | { |
98 | if (opath != NULL) | 98 | if (opath != NULL) |
99 | { | 99 | { |
100 | cpath = GNUNET_malloc (strlen (path) + strlen (opath) + 4); | 100 | GNUNET_asprintf (&cpath, |
101 | strcpy (cpath, opath); | 101 | "%s:%s", |
102 | strcat (cpath, ":"); | 102 | opath, |
103 | strcat (cpath, path); | 103 | path); |
104 | lt_dlsetsearchpath (cpath); | 104 | lt_dlsetsearchpath (cpath); |
105 | GNUNET_free (path); | 105 | GNUNET_free (path); |
106 | GNUNET_free (cpath); | 106 | GNUNET_free (cpath); |