1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Fixed to compile correctly.

- Changed how multi-volume assignments are handled by execve().


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15115 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-08-02 06:49:47 +00:00
parent 6cf4cc5b4a
commit 9caa5b7ec4
6 changed files with 49 additions and 34 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: unistd_execlp.c,v 1.1 2006-08-01 14:27:52 obarthel Exp $
* $Id: unistd_execlp.c,v 1.2 2006-08-02 06:49:47 obarthel Exp $
*
* :ts=4
*
@ -75,12 +75,12 @@ execlp(const char *path, const char *arg0, ...)
{
size_t i;
argv[0] = arg0;
argv[0] = (char *)arg0;
va_start(args,arg0);
for(i = 1 ; i < argc ; i++)
argv[i] = va_arg(args,const char *);
argv[i] = va_arg(args,char *);
va_end(args);
}