fix the search memory corruption bug

This commit is contained in:
FacialTurd 2010-10-11 10:44:09 -07:00
parent 5040b80717
commit 640b00c68e

View File

@ -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