Ticket #13901: patch-gutils_dynamic.c.diff
File patch-gutils_dynamic.c.diff, 495 bytes (added by blb@…, 17 years ago) |
---|
-
gutils/dynamic.c
old new 143 143 if (( lib!=NULL && lib!=(void *) -1) || name==NULL || *name=='/' ) 144 144 return( lib ); 145 145 146 temp = galloc( strlen(" /sw/lib/") + strlen(name) +1 );147 strcpy(temp," /sw/lib/");146 temp = galloc( strlen("@@PREFIX@@/lib/") + strlen(name) +1 ); 147 strcpy(temp,"@@PREFIX@@/lib/"); 148 148 strcat(temp,name); 149 149 lib = dlopen(temp,flags); 150 150 free(temp);