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

[PATCH] Make make check pass again

From: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2001-02-24 08:06:17 CET

sizeof ("fulltext") ==> 9
strlen ("fulltext") ==> 8

This causes svn_fs__matches_atom return false.

* node-rev.c (svn_fs__put_node_revision): Use strlen to get
  the length of a string.

Index: subversion/libsvn_fs/node-rev.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_fs/node-rev.c,v
retrieving revision 1.7
diff -u -r1.7 node-rev.c
--- subversion/libsvn_fs/node-rev.c 2001/02/22 17:49:22 1.7
+++ subversion/libsvn_fs/node-rev.c 2001/02/24 06:57:06
@@ -69,7 +69,7 @@
   rep[0].children = &rep[1];
   rep[1].is_atom = 1;
   rep[1].data = (char *) "fulltext";
- rep[1].len = sizeof ("fulltext");
+ rep[1].len = strlen ("fulltext");
   rep[1].next = skel;
   skel->next = 0;
 

-- 
Yoshiki Hayashi
Received on Sat Oct 21 14:36:23 2006

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.