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

RE: Re: SVNDIFF1 is ready to merge

From: KRONSTORFER Horst <Horst.KRONSTORFER_at_frequentis.com>
Date: 2005-12-12 01:36:06 CET

no, but
 char svnver[5] = "SVN\0";
 char svnver[] = "SVN\0";
would have an additional \0.

on the other hand, most compilers i known will issue at least a warning
when the initialization value would exceed the array size.


-----Original Message-----
From: Philip Martin [mailto:philip@codematters.co.uk]
Sent: Mon 12/12/2005 12:55 AM
To: Daniel Berlin
Cc: Svn Dev
Subject: Re: SVNDIFF1 is ready to merge
Daniel Berlin <dberlin@dberlin.org> writes:

> On Sun, 2005-12-11 at 23:40 +0000, Philip Martin wrote:
>> > {
>> > + char svnver[4] = "SVN\0";
>> That's a bit odd, "SVN\0" is five characters, yet svnver is only [4].
> Errr, no it's not.
> \0 = NULL :)

I know that, but "SVN\0" has a terminating NULL in addition to the \0.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 12 01:39:52 2005

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.