From: Christian Grothoff Date: Fri, 25 Jun 2010 17:59:46 +0000 (+0000) Subject: cleaner X-Git-Tag: initial-import-from-subversion-38251~21205 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8ee50c919672eed45d4fb62d3e5e99a44aab6a07;p=oweals%2Fgnunet.git cleaner --- 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 () { 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);