You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yoshiki Hayashi <yo...@xemacs.org> on 2001/02/24 07:06:17 UTC

[PATCH] Make make check pass again

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