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

Correctly support 1,000 arguments to an external

Previously, more than 999 arguments would overrun a buffer and break
things.

Fixes CID 33313
parent 2a594094
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1052,7 +1052,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
char fname[MAX_PATH+1];
char fullpath[MAX_PATH+1];
char fullcmdline[MAX_PATH+1];
char* argv[MAX_ARGS];
char* argv[MAX_ARGS + 1];
BYTE* bp;
BYTE buf[XTRN_IO_BUF_LEN];
BYTE output_buf[XTRN_IO_BUF_LEN*2];
......
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