From 640b00c68e27fa6aed27b8652d5b42ca5974b9bf Mon Sep 17 00:00:00 2001 From: FacialTurd Date: Mon, 11 Oct 2010 10:44:09 -0700 Subject: fix the search memory corruption bug diff --git a/src/interface.c b/src/interface.c index bdec111..4592a72 100644 --- a/src/interface.c +++ b/src/interface.c @@ -2329,7 +2329,8 @@ int search_ui(pixel *vid_buf) last_date = search_date; last_page = search_page; active = 1; - uri = malloc(strlen(last)*3+80+strlen(SERVER)+strlen(svf_user)); + // TODO: Create a better fix for this bug + uri = malloc(strlen(last)*3+180+strlen(SERVER)+strlen(svf_user)); //Increase "padding" from 80 to 180 to fix the search memory corruption bug if(search_own || svf_admin || svf_mod) tmp = "&ShowVotes=true"; else -- cgit v0.9.2-21-gd62e