From 39b718dd3ea96ef9f70b5575d53cf68a7805da4a Mon Sep 17 00:00:00 2001 From: "Rob Swindell (on Windows 11)" <rob@synchro.net> Date: Sun, 17 Dec 2023 01:37:34 -0800 Subject: [PATCH] Fix typos in comments --- src/sbbs3/userdat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sbbs3/userdat.c b/src/sbbs3/userdat.c index 78bc86a408..496376e8fc 100644 --- a/src/sbbs3/userdat.c +++ b/src/sbbs3/userdat.c @@ -896,7 +896,7 @@ int putusername(scfg_t* cfg, int number, const char *name) int getbirthyear(const char* birth) { - if(IS_DIGIT(birth[2])) // CCYYMMYY format + if(IS_DIGIT(birth[2])) // CCYYMMDD format return DECVAL(birth[0], 1000) + DECVAL(birth[1], 100) + DECVAL(birth[2], 10) @@ -915,7 +915,7 @@ int getbirthyear(const char* birth) int getbirthmonth(scfg_t* cfg, const char* birth) { - if(IS_DIGIT(birth[5])) // CCYYMMYY format + if(IS_DIGIT(birth[5])) // CCYYMMDD format return DECVAL(birth[4], 10) + DECVAL(birth[5], 1); if(cfg->sys_misc & SM_EURODATE) { // DD/MM/YY format return DECVAL(birth[3], 10) + DECVAL(birth[4], 1); @@ -926,7 +926,7 @@ int getbirthmonth(scfg_t* cfg, const char* birth) int getbirthday(scfg_t* cfg, const char* birth) { - if(IS_DIGIT(birth[5])) // CCYYMMYY format + if(IS_DIGIT(birth[5])) // CCYYMMDD format return DECVAL(birth[6], 10) + DECVAL(birth[7], 1); if(cfg->sys_misc & SM_EURODATE) { // DD/MM/YY format return DECVAL(birth[0], 10) + DECVAL(birth[1], 1); -- GitLab