Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1593
Modified Files: Tag: desiredata s_loader.c Log Message: cover up for bug in dlopen
Index: s_loader.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_loader.c,v retrieving revision 1.4.4.5.2.10.2.9 retrieving revision 1.4.4.5.2.10.2.10 diff -C2 -d -r1.4.4.5.2.10.2.9 -r1.4.4.5.2.10.2.10 *** s_loader.c 19 Jul 2007 22:59:07 -0000 1.4.4.5.2.10.2.9 --- s_loader.c 30 Jul 2007 20:56:39 -0000 1.4.4.5.2.10.2.10 *************** *** 128,132 **** /* rebuild the absolute pathname */ free(filename); ! asprintf(&filename,"%s/%s",dirbuf,nameptr); #ifdef DL_OPEN void *dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); --- 128,134 ---- /* rebuild the absolute pathname */ free(filename); ! /* extra nulls are a workaround for a dlopen bug */ ! asprintf(&filename,"%s/%s%c%c%c%c",dirbuf,nameptr,0,0,0,0); ! // filename = realloc(filename,); #ifdef DL_OPEN void *dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL);