In message <[EMAIL PROTECTED]> Mike Smith writes: : if (strlen(buf) >= sizeof(buf)) : return(error); This can never be true with the strl functions.... They don't run off the end, so strlen(buf) is always going to be < sizeof(buf) since it doesn't include the traling null. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: OpenBSD's strlcpy(3) and strlcat(3) Tim Vanderhoek
- Re: OpenBSD's strlcpy(3) and strlcat(3) Mike Smith
- Re: OpenBSD's strlcpy(3) and strlcat(3) Julian Elischer
- Re: OpenBSD's strlcpy(3) and strlcat(3) Paul Hart
- Re: OpenBSD's strlcpy(3) and strlcat(3) Mike Smith
- Re: OpenBSD's strlcpy(3) and strlc... Mike Smith
- Re: OpenBSD's strlcpy(3) and strlc... Paul Hart
- Re: OpenBSD's strlcpy(3) and s... Mike Smith
- Re: OpenBSD's strlcpy(3) and s... Julian Elischer
- Re: OpenBSD's strlcpy(3) and s... Mike Smith
- Re: OpenBSD's strlcpy(3) and s... Warner Losh
- Re: OpenBSD's strlcpy(3) and s... Mike Smith
- Re: OpenBSD's strlcpy(3) and s... Warner Losh
- Re: OpenBSD's strlcpy(3) and s... Mike Smith
- Re: OpenBSD's strlcpy(3) and s... Warner Losh
- Re: OpenBSD's strlcpy(3) and s... Valentin Nechayev
- Re: OpenBSD's strlcpy(3) and strlc... Warner Losh
- Re: OpenBSD's strlcpy(3) and strlcat(3) Mike Smith
- Re: OpenBSD's strlcpy(3) and strlcat(3) Tim Vanderhoek
- Re: OpenBSD's strlcpy(3) and strlcat(3) Warner Losh
- Re: OpenBSD's strlcpy(3) and strlcat(3) Sheldon Hearn