Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit fea6104b authored by Deucе's avatar Deucе 👌🏾

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
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment