[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: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-12-12 01:54:17 CET

On Mon, 2005-12-12 at 01:36 +0100, KRONSTORFER Horst wrote:
> no, but
> char svnver[5] = "SVN\0";
> or
> 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.

yes, in this case, i'm pretty sure it just throws it away.

Of course, it may just be doing something buggy, like stopping the
literal at the first embedded NULL (which it's *not* allowed to do, at
least in C99).

anyhoo, i'll fix it by using {'S', 'V', 'N', 0}

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:55:00 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.