Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18909
Modified Files: Tag: desiredata s_main.c Log Message: removed some MAXPDSTRING
Index: s_main.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_main.c,v retrieving revision 1.7.4.17.2.22.2.25 retrieving revision 1.7.4.17.2.22.2.26 diff -C2 -d -r1.7.4.17.2.22.2.25 -r1.7.4.17.2.22.2.26 *** s_main.c 18 Jul 2007 04:18:38 -0000 1.7.4.17.2.22.2.25 --- s_main.c 20 Jul 2007 04:22:47 -0000 1.7.4.17.2.22.2.26 *************** *** 82,88 **** /* jsarlo { */ int sys_externalschedlib; ! char sys_externalschedlibname[MAXPDSTRING]; int sys_extraflags; ! char sys_extraflagsstring[MAXPDSTRING]; /* } jsarlo */
--- 82,88 ---- /* jsarlo { */ int sys_externalschedlib; ! char *sys_externalschedlibname; int sys_extraflags; ! char *sys_extraflagsstring; /* } jsarlo */
*************** *** 167,171 **** free(filename); externalmainfunc = (t_externalschedlibmain)GetProcAddress(ntdll,"main"); ! return((*externalmainfunc)(sys_extraflagsstring)); #else return 0; --- 167,171 ---- free(filename); externalmainfunc = (t_externalschedlibmain)GetProcAddress(ntdll,"main"); ! return externalmainfunc(sys_extraflagsstring); #else return 0; *************** *** 310,314 **** by consulting the variable INSTALL_PREFIX. In MSW, we don't try to use INSTALL_PREFIX. */ void sys_findprogdir(char *progname) { ! char sbuf[MAXPDSTRING], sbuf2[MAXPDSTRING]; char *lastslash; #ifdef UNISTD --- 310,315 ---- by consulting the variable INSTALL_PREFIX. In MSW, we don't try to use INSTALL_PREFIX. */ void sys_findprogdir(char *progname) { ! char sbuf[MAXPDSTRING]; ! char sbuf2[MAXPDSTRING]; char *lastslash; #ifdef UNISTD *************** *** 545,554 **** if (ARG("-schedlib",2)) { sys_externalschedlib = 1; ! strcpy(sys_externalschedlibname, argv[1]); NEXT(2); } if (ARG("-extraflags",2)) { sys_extraflags = 1; ! strcpy(sys_extraflagsstring, argv[1]); NEXT(2); } --- 546,555 ---- if (ARG("-schedlib",2)) { sys_externalschedlib = 1; ! sys_externalschedlibname = strdup(argv[1]); NEXT(2); } if (ARG("-extraflags",2)) { sys_extraflags = 1; ! sys_extraflagsstring = strdup(argv[1]); NEXT(2); }