[Asterisk-Dev] [RFC] strncpy -> ast_copy_string

Alex Volkov avolkov at bpvn.com
Tue May 3 22:57:16 MST 2005


Kevin P. Fleming wrote:
> I have committed fixes to CVS HEAD for two problems caused by the
> ast_copy_string conversion; one was a bug in the function itself, the
> other was incorrect usage in chan_sip.c when ast_copy_string was used to
> copy substrings.

There still appears to be a derelict string termination in chan_sip at line
10387:

   ast_copy_string(global_realm, v->value, sizeof(global_realm));
   global_realm[sizeof(global_realm)-1] = '\0';

Not technically a problem though.

Alex.




More information about the asterisk-dev mailing list