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

Re: bug in svn_string_strip_whitespace ?

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-10-08 23:24:21 CEST

kfogel@collab.net wrote:
> Martin Furter <mf@rola.ch> writes:
>
>>I'm not sure if it's supposed to be this way but
>>svn_string_strip_whitespace does not strip any spaces when the string
>>only contains spaces.
...
>>Is this a bug ?
>
> I think it's a bug. The doc string implies that it should reduce such
> a string to 0 length. Want to fix?

I'll do it. That function and its "stringbuf" sibling are broken in this way, and this function is also broken in that it doesn't maintain the null-terminator invariant promised by its interface.

When I've fixed them I'll use it in the auto-props code in add.c.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 8 23:23:53 2003

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.