From b56d16281a1fc6c1cc8b78aa8a0224acf8af4cac Mon Sep 17 00:00:00 2001 From: wibyweb <49052850+wibyweb@users.noreply.github.com> Date: Fri, 20 Oct 2023 18:38:43 -0400 Subject: [PATCH] Update htmlparse.h --- c/htmlparse.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c/htmlparse.h b/c/htmlparse.h index bfa7335..71e2dad 100755 --- a/c/htmlparse.h +++ b/c/htmlparse.h @@ -129,6 +129,8 @@ void htmlparse(){ titlefound = 3; //remove from end of title by inserting null at location of < titlesize -= 8; + if(titlesize < 0) //avoids this: + titlesize = 0; title[titlesize] = 0; //printf("\n%s",title); }