[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3702 - Extractor/src/main
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3702 - Extractor/src/main |
Date: |
Sat, 11 Nov 2006 14:28:21 -0800 (PST) |
Author: grothoff
Date: 2006-11-11 14:28:18 -0800 (Sat, 11 Nov 2006)
New Revision: 3702
Modified:
Extractor/src/main/extractor.c
Log:
do not kill existing ld search paths
Modified: Extractor/src/main/extractor.c
===================================================================
--- Extractor/src/main/extractor.c 2006-11-11 22:09:01 UTC (rev 3701)
+++ Extractor/src/main/extractor.c 2006-11-11 22:28:18 UTC (rev 3702)
@@ -499,6 +499,7 @@
int err;
const char * opath;
char * path;
+ char * cpath;
#if ENABLE_NLS
setlocale(LC_ALL, "");
@@ -519,8 +520,13 @@
old_dlsearchpath = strdup(opath);
path = os_get_installation_path();
if (path != NULL) {
- lt_dlsetsearchpath(path);
+ cpath = malloc(strlen(path) + strlen(opath) + 4);
+ strcpy(cpath, opath);
+ strcat(cpath, ":");
+ strcat(cpath, path);
+ lt_dlsetsearchpath(cpath);
free(path);
+ free(cpath);
}
#ifdef MINGW
InitWinEnv();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3702 - Extractor/src/main,
grothoff <=