MP3/MPlayer pre-release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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);


Cheers,

Udo


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux