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

Commit 86920453 authored by Deucе's avatar Deucе 👌🏾
Browse files

Pass nostatus value from entry to get_cterm_size()

This allows get_cterm_size() to return a likely correct value even
if there actually is no cterm instance to get the size of.
parent 257f8160
......@@ -220,7 +220,7 @@ BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen, struct
int rows, cols;
BYTE buf[32];
get_cterm_size(&cols, &rows);
get_cterm_size(&cols, &rows, bbs.nostatus);
......@@ -54,7 +54,7 @@ static struct vmem_cell winbuf[(TRANSFER_WIN_WIDTH + 2) * (TRANSFER_WIN_HEIGHT +
static struct text_info trans_ti;
static struct text_info log_ti;
void get_cterm_size(int* cols, int* rows)
void get_cterm_size(int* cols, int* rows, int ns)
*cols = 80;
*rows = 24;
......@@ -63,7 +63,6 @@ void get_cterm_size(int* cols, int* rows)
*rows = cterm->height;
else {
int ns;
get_term_win_size(cols, rows, &ns);
......@@ -22,6 +22,6 @@ extern int log_level;
BOOL doterm(struct bbslist *);
void mousedrag(struct vmem_cell *scrollback);
void get_cterm_size(int *cols, int *rows);
void get_cterm_size(int *cols, int *rows, int ns);
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