[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11957 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11957 - gnunet/src/util |
Date: |
Fri, 25 Jun 2010 19:59:46 +0200 |
Author: grothoff
Date: 2010-06-25 19:59:46 +0200 (Fri, 25 Jun 2010)
New Revision: 11957
Modified:
gnunet/src/util/plugin.c
Log:
cleaner
Modified: gnunet/src/util/plugin.c
===================================================================
--- gnunet/src/util/plugin.c 2010-06-25 17:34:57 UTC (rev 11956)
+++ gnunet/src/util/plugin.c 2010-06-25 17:59:46 UTC (rev 11957)
@@ -97,10 +97,10 @@
{
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11957 - gnunet/src/util,
gnunet <=