From 5a25e3d065e684421c1e59eea0880921d42fdf1a Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Debian Linux)" <rob@synchro.net> Date: Sun, 12 Jan 2025 19:34:30 -0800 Subject: [PATCH] Use return value of datestr() for PCMS/Baja DATESTR function Similar bug fix as that just made to system.datestr() --- src/sbbs3/execmisc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sbbs3/execmisc.cpp b/src/sbbs3/execmisc.cpp index 9684e89d34..2145fc9c4b 100644 --- a/src/sbbs3/execmisc.cpp +++ b/src/sbbs3/execmisc.cpp @@ -567,8 +567,7 @@ int sbbs_t::exec_misc(csi_t* csi, const char *path) lp=getintvar(csi,*(int32_t *)csi->ip); csi->ip+=4; /* Skip int variable name */ if(pp && lp) { - datestr(*lp, str); - *pp=copystrvar(csi,*pp,str); + *pp=copystrvar(csi,*pp,datestr(*lp, str)); } return(0); case SECOND_STR: -- GitLab