From 830d34298df1dae50584e9423a6ff46754d1f036 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 16 Jul 2002 07:28:58 +0000 Subject: [PATCH] md() checks for empty path parameter before copying string. --- src/sbbs3/load_cfg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/load_cfg.c b/src/sbbs3/load_cfg.c index 71f7cda9b8..6db98a079c 100644 --- a/src/sbbs3/load_cfg.c +++ b/src/sbbs3/load_cfg.c @@ -254,11 +254,11 @@ BOOL md(char *inpath) DIR* dir; char path[MAX_PATH+1]; - SAFECOPY(path,inpath); - - if(path[0]==0) + if(inpath[0]==0) return(FALSE); + SAFECOPY(path,inpath); + /* Remove trailing '.' if present */ if(path[strlen(path)-1]=='.') path[strlen(path)-1]=0; -- GitLab