LRRP Patch 4

Revert getDateL array size; 200 fixes issue in Cygwin, but breaks in Linux builds; (priority is Linux builds) 
--Will look into a different solution that works on both ends.
This commit is contained in:
lwvmobile
2022-08-13 13:55:13 -04:00
committed by GitHub
parent e5a7f8c41a
commit ec4c4637df

View File

@@ -33,8 +33,9 @@ char * getTimeL(void) //get pretty hh:mm:ss timestamp
} }
//getDate has a bug that affects writing to file using fopen 32-bit Ubuntu OS, need to look into //getDate has a bug that affects writing to file using fopen 32-bit Ubuntu OS, need to look into
//increasing array size causes date to not print in Linux builds, but fixes cygwin bug, so reverting to 99 until a better fix is worked out.
char * getDateL(void) { char * getDateL(void) {
char datename[200]; //increased to 200 to fix 32-bit Ubuntu/Cygwin when fopen file printing to lrrp.txt char datename[99]; //increased to 200 to fix 32-bit Ubuntu/Cygwin when fopen file printing to lrrp.txt
char * curr2; char * curr2;
struct tm * to; struct tm * to;
time_t t; time_t t;