You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Edmund Wong <ed...@kdtc.net> on 2009/11/05 00:54:05 UTC

Re: [PATCH] Remove 'svnver' array warning in svndiff.c

Hi,

During a Windows compile under VS2008, the following warning is shown:

..\..\..\subversion\libsvn_delta\svndiff.c(193): warning C4295: 'svnver' :
array is too small to include a terminating null character

(Updating Log to reflect the changes of the path separator from 
\ to /.

Log:

[[[

This patch fixes this misleading assignment.  As per notes/svndiff (thanks
danielsh), svnver = 'SVN\0' where \0 is the format #.  The compiler doesn't
know that and thinks the code is trying to insert another NULL.

* subversion/libsvn_delta/svndiff.c
  window_handler: Changed "SVN\0" to {'S','V','N',0}.

Patch by: Edmund Wong <ed{_AT_}kdtc.net>
Suggested by: rhuijben
Review by: brane
]]]



--
KDTC

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2414562