--- mod_replace-0.1.0/mod_replace.c	2004-04-17 23:30:30.000000000 +0200
+++ mod_replace-0.2.0/mod_replace.c	2008-02-23 16:10:56.278671000 +0100
@@ -1,4 +1,4 @@
-/* $Id: mod_replace.c,v 1.1.1.1 2004/04/17 20:30:30 sttesch Exp $ */
+/* $Id: mod_replace.c,v 1.1.1.1 2007/12/10 20:30:30 angeloxx Exp $ */
 
 /* ====================================================================
  * Copyright (c) 2003, 2004
@@ -1070,7 +1070,7 @@
                         // Backup for the EOS bucket.
 
     /* Interate through the available data. Stop if there is an EOS */
-    APR_BRIGADE_FOREACH(b, bb) {
+    for(b = APR_BRIGADE_FIRST(bb); b != APR_BRIGADE_SENTINEL(bb); b = APR_BUCKET_NEXT(b)) {
 
         if (APR_BUCKET_IS_EOS(b)) {
             eos = 1;

