CVS: spip/ecrire inc_index.php3,1.47,1.48

Update of /home/spip-cvs/spip/ecrire
In directory miel:/tmp/cvs-serv25155/ecrire

Modified Files:
  inc_index.php3
Log Message:
microbug (Yves Pratter)

Index: inc_index.php3

RCS file: /home/spip-cvs/spip/ecrire/inc_index.php3,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- inc_index.php3 26 Nov 2003 00:13:48 -0000 1.47
+++ inc_index.php3 27 Nov 2003 23:09:09 -0000 1.48
@@ -263,7 +263,7 @@
   if ($s = @sizeof($suite = @file($fichier_index))) {
     include_ecrire("inc_texte.php3");
     include_ecrire("inc_filtres.php3");
- $s = $suite[$n = rand(0, $s)];
+ $s = $suite[$n = rand(0, $s-1)];
     unset($suite[$n]);
     $f = fopen($fichier_index, 'wb');
     fwrite($f, join("", $suite));