On Tue, Oct 27, 2009 at 10:47:30AM +0100, Peter Korsgaard wrote: >>>>>> "walter" == walter harms <[email protected]> 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. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
