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

Re: SVN Property 'character-set' or 'encoding' or something like

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-08-07 08:22:19 CEST

Greg Hudson wrote:

>On Fri, 2004-08-06 at 09:46, Branko ÄŒibej wrote:
>
>
>>- && (strncmp (mime_type, "image/x-xbitmap", len) != 0)
>>- && (strncmp (mime_type, "image/x-xpixmap", len) != 0)
>>+ && (len != 15 || strncmp (mime_type, "image/x-xbitmap", 15) != 0)
>>+ && (len != 15 || strncmp (mime_type, "image/x-xpixmap", 15) != 0)
>>
>>
>
>Isn't this what "strcmp" is for?
>
No it's not. "len" doesn't come from "strlen" but from "strcspn", and a
comment in the code explains why.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Aug 7 08:25:45 2004

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.