Revision: 9712 http://pure-data.svn.sourceforge.net/pure-data/?rev=9712&view=rev Author: eighthave Date: 2008-04-15 16:59:40 -0700 (Tue, 15 Apr 2008)
Log Message: ----------- checked in Thomas' patch 1930681 to fix buffer overflows
Modified Paths: -------------- branches/pd-extended/v0-40/pd/src/s_path.c
Modified: branches/pd-extended/v0-40/pd/src/s_path.c =================================================================== --- branches/pd-extended/v0-40/pd/src/s_path.c 2008-04-15 23:59:37 UTC (rev 9711) +++ branches/pd-extended/v0-40/pd/src/s_path.c 2008-04-15 23:59:40 UTC (rev 9712) @@ -380,7 +380,7 @@ int rcargc; char* rcargv[NUMARGS]; char* buffer; - char fname[MAXPDSTRING], buf[1000], *home = getenv("HOME"); + char fname[MAXPDSTRING], buf[1001], *home = getenv("HOME"); int retval = 1; /* that's what we will return at the end; for now, let's think it'll be an error */
/* initialize rc-arg-array so we can safely clean up at the end */ @@ -424,7 +424,7 @@ fclose(file); if (sys_verbose) { - if (rcargv) + if (rcargc) { post("startup args from RC file:"); for (i = 1; i < rcargc; i++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.