Skip to content
Snippets Groups Projects
Commit fea6104b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix array size issues introduced on last commit.

Options were added to arrays without increasing the size of arrays.
This caused the menu generated from them to depend on uninitialized
memory and potentially crash or emit garbage.
parent d054b2c5
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -815,7 +815,7 @@ void begin_upload(struct bbslist *bbs, BOOL autozm, int lastch)
int i;
FILE* fp;
struct file_pick fpick;
char *opts[6]={
char *opts[7]={
"ZMODEM"
,"YMODEM"
,"XMODEM-1K"
......@@ -912,7 +912,7 @@ void begin_download(struct bbslist *bbs)
{
char path[MAX_PATH+1];
int i;
char *opts[5]={
char *opts[6]={
"ZMODEM"
,"YMODEM-g"
,"YMODEM"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment