Error in Rewriter.c in SVN for long paths

Feb 15, 2010 at 5:56 PM

Not sure if it got fat-fingered or what but I just re-checked out SVN and found a problem related to http://iirf.codeplex.com/Thread/View.aspx?ThreadId=80226 ... it looks like on line 2554 you might have dropped the "+1" on the buffer ... the way it is now, extra long paths become empty instead of getting the right string.

Changing: 

strcpy_s(pszBuf,cbBuf,ctx->PhysicalPath);

to

strcpy_s(pszBuf,cbBuf+1,ctx->PhysicalPath);

fixes it.

Thanks &
Cheers,

Toby

Coordinator
Feb 15, 2010 at 8:20 PM

Thanks, good catch.
Changeset #63994 has been checked in to fix this.