On 06 May 2006 Udo Richter <udo_richter@xxxxxx> wrote: > Stefan Huelswitt wrote: >> Ville Skytt? suggested to change the line from >> >> execle("/bin/sh","sh","-c",cmd,0,environ); >> >> to >> >> execle("/bin/sh","sh","-c",cmd,NULL,environ); > > From execle man page: > The list of arguments must be terminated by a NULL pointer, and, > since these are variadic functions, this pointer must be cast (char *) NULL. > > Based on that, correct would be: > execle("/bin/sh","sh","-c",cmd,(char*)NULL,environ); Well, normaly NULL is defined as (void *)0, which is a pointer... As I don't have gcc 4.x running I need a confirmation from someone with gcc 4.x that this is still ok. Regards. -- Stefan Huelswitt s.huelswitt@xxxxxx | http://www.muempf.de/