Skip to content
Snippets Groups Projects
Commit cae7e3b3 authored by deuce's avatar deuce
Browse files

Fix stack corruption issue.

parent a4dac0d9
No related branches found
No related tags found
No related merge requests found
......@@ -527,10 +527,10 @@ void edit_sorting(struct bbslist **list, int *listcount, int *ocur, int *obar, c
int ret,sret;
int i,j;
for(i=0;i<sizeof(sort_order)/sizeof(struct sort_order_info)+1;i++)
for(i=0;i<sizeof(sort_order)/sizeof(struct sort_order_info);i++)
opts[i]=opt[i];
opts[i]=NULL;
for(i=0;i<sizeof(sort_order)/sizeof(struct sort_order_info)+1;i++)
for(i=0;i<sizeof(sort_order)/sizeof(struct sort_order_info);i++)
sopts[i]=sopt[i];
sopts[i]=NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment