[uClibc]Bug in libc/stdlib/bsd_getpt.c
Erik Andersen
andersen at lineo.com
Thu Aug 30 17:38:49 UTC 2001
On Thu Aug 30, 2001 at 02:13:25PM +0300, Kim B. Heino wrote:
> Hello,
>
> In the libc/stdlib/bsd_getpt.c file you have line:
>
> memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1);
>
> It really should be:
>
> memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) );
>
> The last nul character must be copied too because the next line uses
> strlen() to get buf's length.
Thanks, applied,
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list