strnlen1() - 1 won't work.  It will return -1 for zero-length strings.

How is strlen() unsafe in this context?

On Feb 16, 2008 11:57 AM, Giel van Schijndel <[EMAIL PROTECTED]> wrote:
> Author: muggenhor
> Date: Sat Feb 16 18:57:43 2008
> New Revision: 3805
>
> URL: http://svn.gna.org/viewcvs/warzone?rev=3805&view=rev
> Log:
>  * Revert r3804 (replaces usage of strnlen with strnlen with the unsafe 
> strlen)"
>  * Finish r3795 where I nicely #included the correct files but forgot to 
> replace strnlen with strnlen1 - 1
>
> Modified:
>     trunk/lib/framework/debug.c
>
>
> _______________________________________________
> Warzone-commits mailing list
> [EMAIL PROTECTED]
> https://mail.gna.org/listinfo/warzone-commits
>

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to