diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/process/execvp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/process/execvp.c b/src/process/execvp.c index 1fdf036f..ef3b9dd5 100644 --- a/src/process/execvp.c +++ b/src/process/execvp.c @@ -28,8 +28,7 @@ int __execvpe(const char *file, char *const argv[], char *const envp[]) for(p=path; ; p=z) { char b[l+k+1]; - z = strchr(p, ':'); - if (!z) z = p+strlen(p); + z = __strchrnul(p, ':'); if (z-p >= l) { if (!*z++) break; continue; |