diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-25 17:59:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-25 17:59:46 +0000 |
commit | 8ee50c919672eed45d4fb62d3e5e99a44aab6a07 (patch) | |
tree | 37be3b37d9664fb69ea9e421c7eabaa766a53666 /src/util/plugin.c | |
parent | c4d9942632bbe89b7e5315bc21d65e0e0cd2682f (diff) | |
download | gnunet-8ee50c919672eed45d4fb62d3e5e99a44aab6a07.tar.gz gnunet-8ee50c919672eed45d4fb62d3e5e99a44aab6a07.zip |
cleaner
Diffstat (limited to 'src/util/plugin.c')
-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); |