[fpc-devel] Cleanup of the r7012 for the Go32v2

borsa77 at libero.it borsa77 at libero.it
Sun Jul 1 10:27:41 CEST 2007

On 30 Jun 2007 at 22:28, Tomas Hajny wrote:

> The reason for the first change isn't clear to me 
> (what is being fixed or improved by this change) -
>  I recommend to provide clarifications why a 
> change is needed when sending patches.

The problem fixed by r7012 is that the variable argv0len is incremented 
before the placement of the null character in the string cmdline so it is 
resulted in a out of range by one. The original fix solves it with an auxiliary 
variable that is not strictly necessary, when you can adjust the index.

PS: I sent the second part of the correction to the graph unit, I don't know if 
you are absent, in case please see at Graph unit under Go32v2 of the 12 
Jun 2007.

More information about the fpc-devel mailing list