[PATCH 8/8] wall: new applet
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Oct 27 11:22:05 UTC 2009
On Tue, Oct 27, 2009 at 10:47:30AM +0100, Peter Korsgaard wrote:
>>>>>> "walter" == walter harms <wharms at bfs.de> writes:
>No, argv is afaik guaranteed to be null terminated - E.G. access to
>argv[argc] is OK - But you can ofcourse cheat with execve and get argc
>== 0, so the below is indeed better.
>
> walter> perhaps this is more save
> walter> (argc > 1) ? xopen(argv[1], O_RDONLY) : STDIN_FILENO;
indeed.
More information about the busybox
mailing list