Commit d5ae1e5f authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix just-introduced bug in BDATE @-code.

Truncating. str is a pointer, so sizeof(str) is only 4 (or 8) bytes.
parent 22e529cd
Pipeline #289 passed with stage
in 19 minutes and 1 second
......@@ -822,7 +822,7 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen, long* pmode, bool
return getbirthdstr(&cfg, useron.birth, str, sizeof(str));
return getbirthdstr(&cfg, useron.birth, str, maxlen);
if(!strcmp(sp,"AGE")) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment