]> granicus.if.org Git - musl/commit
use __strchrnul instead of strchr and strlen in execvpe
authorFrediano Ziglio <fziglio@redhat.com>
Tue, 26 Mar 2019 09:36:47 +0000 (09:36 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 2 Apr 2019 14:40:01 +0000 (10:40 -0400)
commit7fe51ea85b56e3b900f58091e71420ea668c492c
tree79af9f3777717f4bf2818ac617979d5e03ffbd12
parent086a12b920eedc1779b83a5dfddc00460a4d6be7
use __strchrnul instead of strchr and strlen in execvpe

The result is the same but takes less code.
Note that __execvpe calls getenv which calls __strchrnul so even
using static output the size of the executable won't grow.
src/process/execvp.c