[Asterisk-Dev] [RFC] strncpy -> ast_copy_string
Ledion B
tekixhunga at yahoo.com
Mon May 2 07:45:14 MST 2005
Hey Kevin,
Can we see the code for your test_copy_string and
test_strncpy.
>From my understanding of the documentation of strncpy,
the padding will only happen if n > strlen(src), which
makes sense. If you make sure than n !> strlen(src),
then no padding happens.
Here is a link to the strncpy documentation
http://www.opengroup.org/onlinepubs/007908799/xsh/strncpy.html
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the asterisk-dev
mailing list