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 
_______________________________________________
Asterisk-Dev mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-dev
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to