From f59077592fa7c8ba4d0f2ce184a55e0c04b60e7a Mon Sep 17 00:00:00 2001
From: Slaven Rezic <srezic@cpan.org>
Date: Fri, 11 Apr 2014 17:16:59 +0200
Subject: [PATCH] fix off-by-one error in strip_html()

---
 strip_html.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strip_html.c b/strip_html.c
index 8eaecfe..dcc80db 100644
--- a/strip_html.c
+++ b/strip_html.c
@@ -41,7 +41,7 @@ strip_html( Stripper * stripper, const char * raw, char * output ) {
               /* if we're outside a stripped tag block, check tagname against stripped tag list */
             } else if( !stripper->f_in_striptag && !stripper->f_closing ) {
               int i;
-              for( i = 0; i <= stripper->numstriptags; i++ ) {
+              for( i = 0; i < stripper->numstriptags; i++ ) {
                 if( strcasecmp( stripper->tagname, stripper->o_striptags[i] ) == 0 ) {
                   stripper->f_in_striptag = 1;
                   strcpy( stripper->striptag, stripper->tagname );
-- 
1.7.9.5

