projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4d9942
)
cleaner
author
Christian Grothoff
<christian@grothoff.org>
Fri, 25 Jun 2010 17:59:46 +0000
(17:59 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Fri, 25 Jun 2010 17:59:46 +0000
(17:59 +0000)
src/util/plugin.c
patch
|
blob
|
history
diff --git
a/src/util/plugin.c
b/src/util/plugin.c
index ca93e9ca07bf8e542f97549aa9b725709485c399..567b401c43e412db038461523b1b3c60e4e5c841 100644
(file)
--- a/
src/util/plugin.c
+++ b/
src/util/plugin.c
@@
-97,10
+97,10
@@
plugin_init ()
{
if (opath != NULL)
{
- cpath = GNUNET_malloc (strlen (path) + strlen (opath) + 4);
- strcpy (cpath, opath);
- strcat (cpath, ":");
-
strcat (cpath,
path);
+ GNUNET_asprintf (&cpath,
+ "%s:%s",
+ opath,
+
path);
lt_dlsetsearchpath (cpath);
GNUNET_free (path);
GNUNET_free (cpath);