diff options
| author | FacialTurd <simon@hardwired.org.uk> | 2010-10-11 17:44:09 (GMT) |
|---|---|---|
| committer | FacialTurd <simon@hardwired.org.uk> | 2010-10-11 17:44:09 (GMT) |
| commit | 640b00c68e27fa6aed27b8652d5b42ca5974b9bf (patch) | |
| tree | bb1037edbeb86e3d5e217fd3447bc52bae2cfae1 /src/interface.c | |
| parent | 5040b80717cf8f86c6703d9d5c12f4e94bfbb932 (diff) | |
| download | powder-640b00c68e27fa6aed27b8652d5b42ca5974b9bf.zip powder-640b00c68e27fa6aed27b8652d5b42ca5974b9bf.tar.gz | |
fix the search memory corruption bug
Diffstat (limited to 'src/interface.c')
| -rw-r--r-- | src/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
