[fpc-devel]Stupid implementation of execlp

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Thu May 23 20:00:06 CEST 2002


On Thu, 23 May 2002, Ondrej Bojar wrote:

> Hi.
>
>   Your implementation of execlp in FPC is really bad.
>
>   It searches for the executable in first six directories of $PATH only.

With reason: Pascal Strings can only contain 255 chars. Anything outside that
range cannot be processed. Since the getenv only returns 255 chars, only
that portion of the path is processed.

We can fix this, but that will be for the 1.1 branch of FPC.

Michael.






More information about the fpc-devel mailing list