[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Purify is your friend.

From: Greg Stein <gstein_at_lyra.org>
Date: 2001-05-10 14:23:37 CEST

On Thu, May 10, 2001 at 08:41:13AM +0200, brane@xbc.nu wrote:
> The thing is, one would expect apr_pstrndup to behave like the standard strn*
> functions, which also operate on "string"s, but guarantee not to touch anything
> past the "n". (It doesn't /have/ to, of course.)
> Would it be O.K. if I changed the length check to use a memchr of '\0' instead
> of strlen?

Seems like a fine solution!


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:30 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.