From 0d69795af4a898624a10d1ef9267dacb8887140d Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 9 May 2019 21:00:13 +0000 Subject: [PATCH] if sbbs_t::exec_bin() is called with a blank or NULL module name, just return an error value (-33, it's the magic number). --- src/sbbs3/exec.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbbs3/exec.cpp b/src/sbbs3/exec.cpp index 73ea614a84..0eda34919d 100644 --- a/src/sbbs3/exec.cpp +++ b/src/sbbs3/exec.cpp @@ -742,6 +742,8 @@ long sbbs_t::exec_bin(const char *cmdline, csi_t *csi, const char* startup_dir) int file; csi_t bin; + if(cmdline == NULL || *cmdline == 0) + return -33; SAFECOPY(mod,cmdline); p=mod; FIND_CHAR(p,' '); -- GitLab