Enlightenment CVS committal
Author : doursse
Project : e17
Module : proto/evil
Dir : e17/proto/evil/src/lib/dlfcn
Modified Files:
dlfcn.c
Log Message:
* src/lib/dlfcn/dlfcn.c: (dladdr):
replace all the '\' by '/' in the filename found by dladdr
===================================================================
RCS file: /cvs/e/e17/proto/evil/src/lib/dlfcn/dlfcn.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- dlfcn.c 28 Apr 2008 14:34:54 -0000 1.7
+++ dlfcn.c 9 May 2008 23:16:42 -0000 1.8
@@ -161,6 +161,7 @@
{
TCHAR tpath[PATH_MAX];
char *path;
+ char *tmp;
int length;
int ret = 0;
@@ -182,6 +183,14 @@
{
length = PATH_MAX - 1;
path[PATH_MAX - 1] = '\0';
+ }
+
+ /* replace '\' by '/' */
+ tmp = path;
+ while (*tmp)
+ {
+ if (*tmp == '\\') *tmp = '/';
+ tmp++;
}
memcpy (info->dli_fname, path, length + 1);
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs