Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25665
Modified Files: Tag: desiredata s_path.c Log Message: fix open_via_helppath
Index: s_path.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_path.c,v retrieving revision 1.3.4.6.2.8.2.13 retrieving revision 1.3.4.6.2.8.2.14 diff -C2 -d -r1.3.4.6.2.8.2.13 -r1.3.4.6.2.8.2.14 *** s_path.c 30 Jul 2007 20:31:39 -0000 1.3.4.6.2.8.2.13 --- s_path.c 1 Aug 2007 16:50:32 -0000 1.3.4.6.2.8.2.14 *************** *** 229,235 **** extern "C" void open_via_helppath(const char *name, const char *dir) { char *realname=0, *dirbuf, *basename; ! int suffixed = strlen(realname) > 3 && !strcmp(realname+strlen(realname)-3, ".pd"); ! int fd; asprintf(&realname,"%.*s-help.pd",strlen(name)-3*suffixed,name); if ((fd = do_open_via_path(dir,realname,"",&dirbuf,&basename,0,sys_helppath))>=0) goto gotone; free(realname); --- 229,235 ---- extern "C" void open_via_helppath(const char *name, const char *dir) { char *realname=0, *dirbuf, *basename; ! int suffixed = strlen(name) > 3 && !strcmp(name+strlen(name)-3, ".pd"); asprintf(&realname,"%.*s-help.pd",strlen(name)-3*suffixed,name); + int fd; if ((fd = do_open_via_path(dir,realname,"",&dirbuf,&basename,0,sys_helppath))>=0) goto gotone; free(realname);