Skip to content
Snippets Groups Projects
Commit 133e06ca authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

For SBBSecho to use text.dat strings, it needs load_cfg() to support it

Thanks to Dan_C for the head's up that SBBSecho stopped (very recently) successfully sending notices to users about received netmail or echomail.
parent 980d0cc7
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2806 failed
...@@ -43,11 +43,9 @@ char * readtext(long *line, FILE *stream, long dflt); ...@@ -43,11 +43,9 @@ char * readtext(long *line, FILE *stream, long dflt);
BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error, size_t maxerrlen) BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error, size_t maxerrlen)
{ {
int i; int i;
#ifdef SBBS
long line=0L; long line=0L;
FILE *instream; FILE *instream;
char str[256]; char str[256];
#endif
if(cfg->size!=sizeof(scfg_t)) { if(cfg->size!=sizeof(scfg_t)) {
safe_snprintf(error, maxerrlen,"cfg->size (%"PRIu32") != sizeof(scfg_t) (%" XP_PRIsize_t "d)" safe_snprintf(error, maxerrlen,"cfg->size (%"PRIu32") != sizeof(scfg_t) (%" XP_PRIsize_t "d)"
...@@ -86,7 +84,6 @@ BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error, ...@@ -86,7 +84,6 @@ BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error,
if(read_attr_cfg(cfg, error, maxerrlen)==FALSE) if(read_attr_cfg(cfg, error, maxerrlen)==FALSE)
return(FALSE); return(FALSE);
#ifdef SBBS
if(text!=NULL) { if(text!=NULL) {
/* Free existing text if allocated */ /* Free existing text if allocated */
...@@ -112,7 +109,6 @@ BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error, ...@@ -112,7 +109,6 @@ BOOL load_cfg(scfg_t* cfg, char* text[], BOOL prep, BOOL req_node, char* error,
} }
cfg->text = text; cfg->text = text;
} }
#endif
/* Override com-port settings */ /* Override com-port settings */
cfg->com_base=0xf; /* All nodes use FOSSIL */ cfg->com_base=0xf; /* All nodes use FOSSIL */
......
...@@ -103,9 +103,11 @@ ...@@ -103,9 +103,11 @@
<ClCompile Include="ars.c" /> <ClCompile Include="ars.c" />
<ClCompile Include="load_cfg.c" /> <ClCompile Include="load_cfg.c" />
<ClCompile Include="nopen.c" /> <ClCompile Include="nopen.c" />
<ClCompile Include="readtext.c" />
<ClCompile Include="scfglib1.c" /> <ClCompile Include="scfglib1.c" />
<ClCompile Include="scfglib2.c" /> <ClCompile Include="scfglib2.c" />
<ClCompile Include="str_util.c" /> <ClCompile Include="str_util.c" />
<ClCompile Include="text_defaults.c" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment