[Asterisk-Dev] app_conference errors

Jerris, Michael MI mjerris at ofllc.com
Thu Dec 1 07:15:12 MST 2005


 

> Diyanat Ali
> 
> Solved the error by changing line 235 in cli.c
> 
>       ast_copy_string(newsound->name, file, 
> sizeof(newsound->name)); to
>        strncpy(newsound->name, file, sizeof(newsound->name));
> 
> it works fine now
> 

Shouldn't that be:
strncpy(newsound->name, file, sizeof(newsound->name)-1);



More information about the asterisk-dev mailing list